You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am on development branch from about a week ago (I need an r74 build for the #3532 fix) and I am not able to figure out how to quickly insert simple lambertian matte shading into the custom shader I am writing.
Basically I need to write a shader to render (in one pass) a single directional sun light with a shadowmap and a fixed number of non-shadowed pointlights that are affixed to the mesh.
What I've got so far which fails to compile now that I've attempted to add ShaderChunks for lights is:
I get some ungooglable problems including a syntax error at IncidentLight -- this doesnt even appear anywhere in the code when I search..
I guess what i'm going to do now is just hand-roll the per-vertex lambert that I need and get on with my custom pointlights. But it would be so fantastic if someone could shed a little (directional?) light on what happened to ShaderChunk.lights_lambert_pars_vertex.
The text was updated successfully, but these errors were encountered:
OK looks like i need common for IncidentLight and maybe I will be able to figure this out. I was trying to find how the default shaders were made, got nowhere from grepping, and then i stumbled upon ShaderLib.js and it holds ALL the secrets.
I am on development branch from about a week ago (I need an r74 build for the #3532 fix) and I am not able to figure out how to quickly insert simple lambertian matte shading into the custom shader I am writing.
Basically I need to write a shader to render (in one pass) a single directional sun light with a shadowmap and a fixed number of non-shadowed pointlights that are affixed to the mesh.
What I've got so far which fails to compile now that I've attempted to add ShaderChunks for lights is:
I get some ungooglable problems including a syntax error at
IncidentLight
-- this doesnt even appear anywhere in the code when I search..I guess what i'm going to do now is just hand-roll the per-vertex lambert that I need and get on with my custom pointlights. But it would be so fantastic if someone could shed a little (directional?) light on what happened to
ShaderChunk.lights_lambert_pars_vertex
.The text was updated successfully, but these errors were encountered: