Deformation of an .obj file.

Hi all, Just learning shaders. Is it possible to deform a .obj file using a shader (like it is being sucked into a blackhole).

Would this be in the vertex shader?

Thanks.

Tagged:

Answers

  • edited November 2017 Answer ✓

    yes sure

    pseudocode

    in attribute positions
    uniform float time

    gl_FragCoord = position.x+sin(time) // here we go!

Sign In or Register to comment.