Shader

From Crumbled World Wiki

ShaderExampleCode


Functions

return function description
string getName() Get shader name.
string getFullName() Get shader name and the including defintions. This name can be used to load the shader from Core.getShader().
{string} getDefinitions() Get all shader definitions
bindTextureLocation(string textureName, int glId) Bind texture name to specifig opengl id.