#How to edit an existing shader when using WebGPURenderer

2 messages · Page 1 of 1 (latest)

jolly grove
#

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 ?

dense veldt
#

Haven't tested, but this method exists:

const nodeMaterial = NodeMaterial.fromMaterial( material );