Shaders

Loads necessary shaders into variables, and any custom user shaders into an associative array

Members

Static functions

get
Shader get(string name)

Returns a Shader based on its string name

initialize
void initialize()

Loads the field-shaders first, then any additional shaders in the Shaders folder

opIndex
Shader opIndex(string name)

Returns a Shader based on its string name

shutdown
void shutdown()

Empties the array of shaders and calls their Shutdown function

Static variables

ambientLight
Shader ambientLight;

Ambient Lighting Shader

animatedGeometry
Shader animatedGeometry;

Animated Geometry Shader

animatedShadowMap
Shader animatedShadowMap;

Shader for depth of animated objects.

directionalLight
Shader directionalLight;

Directional Lighting shader

geometry
Shader geometry;

Geometry Shader

pointLight
Shader pointLight;

Point Lighting shader

shadowMap
Shader shadowMap;

Shader for depth of inanimate objects.

userInterface
Shader userInterface;

User Interface shader

Meta