/SDL2-OpenGL

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.

Primary LanguageC

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