MeshPhongMaterial source

How to check vertShader and fragShader source of MeshPhongMaterial?

I want to know how to use the light source information of three.js.

I suggest you start with Spector.js. It allows you to easily inspect WebGL scenes which includes the vertex and fragment shaders.

6 Likes

I checked the source. thank you.

Thanks Mugen.
I still am a bit sceptic because the site says that 10.000+ people were using spector.js but only 1 wrote a review and that with only 2 words…

1 Like

It is an absolute must have for working with higher level webgl libraries / apps.