Guest User

shadertoy wrapper for glsl live coder

a guest
Jan 22nd, 2016
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //shadertoy-to-livecoder wrapper (no textures, animations nor sounds)
  2. uniform float time;
  3. uniform vec2 resolution;
  4. uniform vec2 mouse;
  5.  
  6. #define iGlobalTime time
  7. #define fragCoord gl_FragCoord
  8. #define iResolution resolution
  9. #define iMouse (mouse * resolution)
  10.  
  11. /*
  12. Do a copy-and-paste fro shadertoy.com/view/xxxxxx here
  13. ...
  14. */
  15.  
  16. void main()
  17. {
  18.     mainImage(gl_FragColor, gl_FragCoord);
  19. }
Add Comment
Please, Sign In to add comment