An optional callback that is executed immediately before the material is used to render a 3D object.
Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON().
This callback is only supported in WebGLRenderer (not WebGPURenderer).
An optional callback that is executed immediately before the material is used to render a 3D object. Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON(). This callback is only supported in
WebGLRenderer(notWebGPURenderer).