SHADERed is a lightweight tool for writing and debugging shaders. It is easy to use, open source, cross-platform (runs on Windows, Linux & Web - HLSL shaders work on all three platforms) and frequently updated with new features.
Shader debugger lets you find bugs in your shader. It is simple to use - you just pause the preview and select the pixel that you are interested in. After starting the debugger, you will be able to:
- step through your shader code line by line
- run immediate expressions
- add watches
- place (conditional) breakpoints
- see list of all variables and their values
You are not limited to vertex and pixel shaders. SHADERed also has support for compute & geometry shaders. To use GS, enable it in the shader pass' properties and set the path to your shader. You can create advanced animations and effects using geometry shaders.
You can also add compute passes alongside normal shader passes:
You can develop your own SHADERed plugins and upload them to our database so that they can be installed through SHADERed: link.
To see the plugin API's potential, check out:
- GodotShaders - adds support for Godot's shading language
- ShadertoyImporter - makes loading Shadertoy project a super easy task
- GIFCapture - SHADERed plugin that adds the ability to capture GIFs
- Slang - SHADERed plugins that adds support for Slang shader language
You can download them through the shadered.org website or through SHADERed's "Browse online" window.
There are different ways to compile your shaders. You can: press F5 to manually recompile shader, make it recompile shaders on file modify event (which then allows you to use external editors) or make it recompile shaders when content in built-in text edtior changes:
You can modify rasterizer, blend and depth-stencil states. Using these states you can: turn on wireframe mode, disable depth test, use stencil buffer, disable culling, custom blending, etc... All these things help you achieve even more advanced effects.
You can add music and create amazing visualizers!
Custom 3D models can also be easily added to the scene. You can also use built-in geometry objects such as cubes, spheres, planes, full screen quads, etc...
Load textures from files and bind them to your shader. SHADERed also supports cubemaps & 3D textures.
You can render your scene to render textures. You can bind multiple render textures as output to one shader pass. This helps with creating G-Buffer and similar things. You can modify these render texture properties: size, format & clear color
You can create your own variables and edit their values in real time. SHADERed also comes with lots of built-in 'system' shader variables (elapsed time, window size, various view matrices, etc...). You can change shader variable value only for a specific 3D object - no programming required.
Do you need to zoom in on an area of your shader output? You can do that by holding ALT and then selecting the area you want to zoom in. This can be useful when developing antialiasing shaders. It is also possible to pause the time
Shader made by The Art Of Code
Instancing, buffers, audio shaders, ability to have more than one camera, shader macros, pausing time, input layout/vertex attribute manager, export as image and image sequence, variable pointers, etc...
You can also check this list too: link.
Supporter(s):
- Hugo Locurcio
- Senthil Kumaran Rajasekaran
- Vladimir Alyamkin
- Wogos Media
- Snow Developments
- Adad Morales
Support the development of this project on Patreon:
You can support the development of this project via PayPal:
My e-mail address for businesses (or if you just want to contact me): contact at shadered dot org
You can download precompiled binaries through the Releases page or you can use the shadered.org website.
On Windows, you can use Scoop to install SHADERed:
scoop bucket add extras
scoop install shadered
SHADERed is available on Flathub. After setting up Flatpak, you can install it by entering the following commands in a terminal:
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install --user flathub org.shadered.SHADERed -y
Note that the Flatpak version runs in a sandbox and some features may not work correctly yet. Please report Flatpak-specific issues here.
First clone the project & submodules:
git clone https://github.com/dfranx/SHADERed.git
cd SHADERed
git submodule update --init
Install all the libraries that are needed:
# Ubuntu
sudo apt install libsdl2-dev libsfml-dev libglew-dev libglm-dev libgtk-3-dev
# Fedora
sudo dnf install SFML-devel glm-devel glew-devel SDL2-devel gtk3-devel
Build:
cmake .
make
NOTE: If you want immediate mode and related features, turn on BUILD_IMMEDIATE_MODE flag.
cmake -DBUILD_IMMEDIATE_MODE=ON .
make
NOTE: If you dont have SFML 2.5 installed on your machine, run these commands:
cmake -DUSE_FINDSFML=ON .
make
If you would like to perform an out-of-source build, do the following:
mkdir build
cd build
cmake .. # or, if SFML 2.5 is not installed, cmake -DUSE_FINDSFML=ON ..
make
Run:
./bin/SHADERed
NOTE: macOS is not officially supported by me + some features are not supported on macOS
Install all the libraries that are needed:
brew install sdl2 sfml glew glm
Build:
mkdir build
cd build
cmake ../
make -j8
Note: If you're building on a macOS version prior to 10.15 (Catalina) you may need to update Xcode and create a symlink for the SDK:
ln -s "$(xcrun --sdk macosx --show-sdk-path)" "$(xcrun --sdk macosx --show-sdk-platform-path)/Developer/SDKs/MacOSX10.15.sdk"
Run:
./bin/SHADERed
- Install SDL2, SFML, GLEW & GLM through your favourite package manager (I recommend vcpkg)
- Run cmake-gui and set CMAKE_TOOLCHAIN_FILE variable (and turn on BUILD_IMMEDIATE_MODE flag if you want to have immediate mode and related features)
- Press Configure and then Generate if no errors occured
- Open the .sln and build the project!
Don't know how or where to start? The debugger is confusing? Want to create your own shader or custom SHADERed theme? Visit the official documentation to see detailed steps on how to do these things. Or you can watch the video tutorials on YouTube.
Shader made by The Art Of Code
Send your own screenshots here!
This project uses:
- assimp/assimp
- KhronosGroup/glslang
- ocornut/imgui (docking + tables branch)
- juliettef/imgui_markdown
- BalazsJako/ImGuiColorTextEdit
- benhoyt/inih
- zeux/pugixml
- dfranx/ShaderExpressionParser
- KhronosGroup/SPIRV-Cross
- KhronosGroup/SPIRV-Headers
- KhronosGroup/SPIRV-Tools
- dfranx/SPIRV-VM
- rAzoR8/SpvGenTwo
- nothings/stb
- aiekick/ImGuiFileDialog
Some of the examples in the examples
directory were taken from AMD's Render Monkey, so credits to AMD.
SHADERed is licensed under MIT license. See LICENSE for more details.