Class Shaders

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

Inherits from

  • Object (base class)

Fields

Name Type Description
ambientLight dash.graphics.shaders.shaders.Shader Ambient Lighting Shader
animatedGeometry dash.graphics.shaders.shaders.Shader Animated Geometry Shader
animatedShadowMap dash.graphics.shaders.shaders.Shader Shader for depth of animated objects.
directionalLight dash.graphics.shaders.shaders.Shader Directional Lighting shader
geometry dash.graphics.shaders.shaders.Shader Geometry Shader
pointLight dash.graphics.shaders.shaders.Shader Point Lighting shader
shadowMap dash.graphics.shaders.shaders.Shader Shader for depth of inanimate objects.
userInterface dash.graphics.shaders.shaders.Shader User Interface shader

Methods

Name Description
get Returns a Shader based on its string name
initialize Loads the field-shaders first, then any additional shaders in the Shaders folder
opIndex Returns a Shader based on its string name
shutdown Empties the array of shaders and calls their Shutdown function

Authors

Copyright

License