Hi, i made a melty shader using this framework:
Now i wanted to port my code into the spring-engine, to use the melt shader on a lava-level. Which results in the fNormal not beeing calculated as in the threejs implementation.
fNormal = normalize(normalMatrix * normal); != fNormal = normalize(gl_NormalMatrix * gl_Normal.xyz);
I tryied several other variants and variations- and to be honest, i forgot quite a bit on what i was doing back then with the shadder.
So if anyone could give me a pointer to where three js normal calculations deviates from glsl normals, i woudl be glad.
Thanks and have a wonderful evening