io.github.fralonra.WgShadertoy

A WGSL playground inspired by Shadertoy
  0
  no reviews

no screenshot



WgShadertoy is a WGSL playground inspired by Shadertoy.



It uses a binary format 'wgs' to save and load shaders and textures.



The runtime currently provides six parameters you can use in your shader as a uniform variable:

<ul><li>cursor vec2 The mouse position in pixels.</li><li>mouse_down u32 Whether the left button of the mouse is down.</li><li>mouse_press vec2 The mouse position in pixels when the left button is pressed.</li><li>mouse_release vec2 The mouse position in pixels when the left button is released.</li><li>resolution vec2 The resolution of the canvas in pixels (width * height).</li><li>time f32 The elapsed time since the shader first ran, in seconds.</li></ul>