Shader StudioA GLSL fragment shader viewer for VS Code with hot reloading, designed specifically for Shadertoy-style shaders. See https://www.shadertoy.com for more information on the format and to see some cool shaders.
https://marketplace.visualstudio.com/items?itemName=slevesque.shader is recomended for synax highlighting. Quick Start
You can launch as many panels, windows, or browser tabs as you want simultaneously.
Viewing ModesPanelThis runs the shader within a panel in VS Code, allowing you to view your shader alongside your code. Web BrowserFor the best performance, it's recommended to use your web browser. Web browsers appear to have better GPU optimizations and can achieve higher priority rendering than observed in VS Code panels. Runtime ConfigIf you click on the resolution on the menubar there are some options to change how the shader is displayed.
ConfigurationIf you want to use buffers or include textures, you can do so by creating a corresponding The config file should be in the same directory as your shader with the naming convention:
The extension provides a visual editor for
The passes are Example Configuration FormatHere's an example of the configuration format.
Debugging (Experemental)Shader Studio can transpile your GLSL shader code into JavaScript (using https://github.com/stackgl/glsl-transpiler). This allows you to use the standard VS Code debugger to step through your shader code, inspect variables, and understand its execution flow. To use this feature, open a This can be used in conjunction with the pixel inspector. Get the values from that and then update the js uniforms. Shadertoy CompatibilityThe aim is to support all Shadertoy features. Currently, the extension supports the following uniforms: Currently Supported
Not Yet Supported
ContributingFound a bug or want to contribute? Visit the GitHub repository to report issues or submit pull requests. |




