Material extension interface This is used to extend a three.js material satisfying the IMaterial interface, with extra uniforms, defines, shader code, etc.
Custom cache key to use for this material extension.
A different cache key will cause the shader to be recompiled.
Check three.js docs for more info.
Value can be a string or a function that returns a string
This will only be checked if
true, not on every render.
Extra defines to copy to material
Extra uniforms to copy to material
Function to return the UI config for this material extension. This is called once when the material extension is registered.
Function to check if this material extension is compatible with the given material. If not compatible, the material extension will not be applied. This is only checked when the extension is registered.
Custom callback to run code after the material is rendered
material.onAfterRender for each material for each object it's rendered on.
Custom callback to run code before the material is rendered
material.onBeforeRender for each material for each object it's rendered on.
Extra code to add to the top of the fragment shader Value can be a string or a function that returns a string
Extra code to add to the top of the vertex shader Value can be a string or a function that returns a string
Higher priority extensions are applied first.
List of shader properties updaters to run on the material.
Generated using TypeDoc