Used internally for material shader defines.
Ratio of the extruded objects, where 1.0
is the default value. Minimum suggested value
is 0.01
Informs THREE.js to re-compile material shader (due to change in code or defines).
This function should be called on implementors of ExtrusionFeature in the onBeforeCompile
callback of that material. It adds the required code to the shaders and declares the new
uniforms that control extrusion.
Called before shader program compilation to generate vertex & fragment shader output code.
Material to add uniforms to.
[[THREE.WebGLShader]] containing the vertex and fragment shaders to add the special includes to.
Used internally for material shader defines.
Used internally for shader uniforms, holds references to material internal shader.uniforms.
Holds a reference to material's internal shader uniforms map. New custom feature based uniforms are injected using this reference, but also internal THREE.js shader uniforms will be available via this map after [[Material#onBeforeCompile]] callback is run with feature enabled.
Available in all materials in ThreeJS.
Hidden ThreeJS value that is made public here. Required to add new uniforms to subclasses of [[THREE.MeshBasicMaterial]]/[[THREE.MeshStandardMaterial]], basically all materials that are not THREE.ShaderMaterial.
Checks if feature is enabled based on ExtrusionFeature properties.
-
Patch the THREE.ShaderChunk on first call with some extra shader chunks.
Update the internals of the ExtrusionFeature
depending on the value of extrusionRatio.
Generated using TypeDoc
Base interface for all objects that should have animated extrusion effect.
The implementation of the actual ExtrusionFeature is done with the help of the mixin class ExtrusionFeatureMixin and a set of supporting functions in the namespace of the same name.