Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Fragmented Shader Played in Reverse

  1. #1
    Newbie Newbie
    Join Date
    Sep 2017
    Posts
    2

    Fragmented Shader Played in Reverse

    Hey!

    This is WebGl!

    I have this fragment shader that I found on shadertoy.com, and now I'm going to implement it via three.js. My issue is that I would really want to be able to go control the "time" of the shader. So that I can let it "play" and then "reverse" the effect to get it back to the starting point. It will also be interactive so it's not a question of an animation.

    What would be the best way to do this? I'm new when it comes to fragment shaders.

    Here's the shadertoy effect:
    https://www.shadertoy.com/view/ldcGDX

    Would really appreciate an answer, thank you!

  2. #2
    Administrator Regular Contributor Khronos_webmaster's Avatar
    Join Date
    Apr 2007
    Location
    Montreal
    Posts
    175
    And this is a WebGL forum. :-)

    Best to ask this question on Stack Overflow using the WebGL tag: https://stackoverflow.com/questions/tagged/webgl
    Webmaster Khronos.org and OpenGL.org

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •