[Solved] Recreating build-in materials using ShaderMaterial

Hi Everyone.

I have been trying to recreate an existing MeshPhysicalMaterial using ShaderMaterial. The base code is extracted from the ShaderChunk wherever required.

Not sure what’s wrong in my implementation. I can only see black colored object.
Here’s the link of my implementation.

Any help will be deeply appreciated.

Got help from this post.

1 Like