Skip to content
This is a starter series about GLSL Shaders using SDL2 as OpenGL Helper and a bit Shader-Language for C-Coders. Finally using a Shadertoy shader.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
shots
src
4ltSRS_nebula_smoke
Makefile
Ms2SD1_Seascape
README.md

README.md

This is a starter series about GLSL Shaders using SDL2 as OpenGL Helper and a bit Shader-Language for C-Coders.

0 - Init a simple OpenGL Window
1 - Draw and rotate rectangles
texture_SOIL texture_SDL2 - Render Texture
2 - Working with shaders
3 - Load a shadertoy shader
3a1 - press n to create new shader, will open in Editor
if file is changed and saved. press c to compile.
3a2 - should track if file in Editor was written and auto-compile.

When working with shaders use left mouse button and mouse motion to change view.
When working with multiple shaders use middle mouse button to switch shaders.

The work on Shader Toy Fragment Shaders has been split out to an extra project:
Shade it!, enjoy!

Useful links:
SDL2 | SDL-Discourse | SDL2-Example Code | N. Nopper-Code | McKesson-Book | Íñigo Quílez

Screenshots:
Screenshot
Screenshot
Screenshot

Get in touch on SDL-Discourse

You can’t perform that action at this time.