Fyrestar / THREE.extendMaterial

Extending built-in materials, instances of ShaderMaterial and shader objects of onBeforeCompile.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: Cannot redefine property: customDepthMaterial

PlopTheReal opened this issue · comments

I'm trying to extend a meshPhongMaterial but I'm getting TypeError: Cannot redefine property: customDepthMaterial error.

I'm using threejs 0.140.2

Do you have a simplified code example that reproduces your issue?