Shader

From Crumbled World Wiki
Revision as of 14:26, 5 July 2025 by Anders (talk | contribs) (Created page with "{{:ShaderExampleCode}} ==Functions== {| class="wikitable" !|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 |- | |Shader:bindTextureLocation(string textureName, int glId)|bindTe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.