2 messages · Page 1 of 1 (latest)
Is there any way to convert a material to its nodeMaterial equivalent ?
Like MeshStandardMaterial => MeshStandardNodeMaterial
Otherwise how are we supposed to edit the shader of a MeshStandardMaterial made from importing a .glb when using WebGPURenderer since there is no more onBeforeCompile ?
Haven't tested, but this method exists:
const nodeMaterial = NodeMaterial.fromMaterial( material );