WgShadertoy WGSL Playground Application

WgShadertoy stands as a dynamic WGSL (WebGPU Shading Language) playground, drawing inspiration from the Shadertoy platform. Distinguished by its utilization of the ‘wgs’ binary format, this innovative tool facilitates the storage and retrieval of shaders and textures. The runtime framework of WgShadertoy empowers creators with six essential parameters accessible as uniform variables within their shaders:


cursor (vec2): Represents the precise mouse position in pixels.
mouse_down (u32): Indicates the state of the left mouse button, providing a binary value for its pressed or released condition.
mouse_press (vec2): Records the mouse position in pixels at the moment the left button is pressed.
mouse_release (vec2): Captures the mouse position in pixels at the instant the left button is released.
resolution (vec2): Defines the resolution of the canvas in pixels, calculated as the product of width and height.
time (f32): Offers the elapsed time since the shader’s initial execution, measured in seconds.

Also Read:  PikaTorrent BitTorrent Application

Download WgShadertoy [Windows, Linux, MacOS]

How to Install WgShadertoy on Ubuntu

WgShadertoy is accessible as a Flatpak package file from the remote Flathub repository. If you do not have it installed, please use the commands below to install Flatpak and Flathub. Restart your system after completing the installation.

sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

After that in the terminal app (ctrl+alt+t) run below command to install WgShadertoy.

flatpak install flathub io.github.fralonra.WgShadertoy

And open WgShadertoy using below command.

flatpak run io.github.fralonra.WgShadertoy

And uninstall WgShadertoy using below commands.

flatpak uninstall io.github.fralonra.WgShadertoy


sudo flatpak uninstall io.github.fralonra.WgShadertoy
If you liked this article, please subscribe to our YouTube Channel. You can also stay connected with us on X (Twitter) and Facebook.

Leave a Reply