Restores the default shaders.
resetShader() deactivates any shaders previously applied by shader().
Note: Shaders can only be used in WebGL mode.
Examples
This page is generated from the comments in src/webgl/material.js . Please feel free to edit it and submit a pull request!
Related References
copyToContext
Copies the shader from one drawing context to another.
inspectHooks
Logs the hooks available in this shader, and their current implementation.
modify
Returns a new shader, based on the original, but with custom snippets of shader code replacing default behaviour.
setUniform
Sets the shader’s uniform (global) variables.