Skip to content
Carl Hewett edited this page Mar 1, 2016 · 2 revisions

A shader is a program that runs on the graphics card. Right now, the engine uses OpenGL so it only supports GLSL. Each shader program has two files: the vertex shader and the fragment shader. Their specifics can be found here. Normally, you would not even need to modify the default SDL3D shaders found the shaders directory, all you would normally need to do is to add them.

To add a shader, check out ResourceManager's addShader.

Class Shader

string getName()

Get the shader's name.