Commit 0bab7ed6 authored by Martin Heistermann's avatar Martin Heistermann

boxesnode shader: remove broken normal transformation code

parent 242b124a
......@@ -21,16 +21,6 @@ void main()
pa_posWS.xyz *= scale;
pa_posWS.xyz += inst_pos;
#ifdef SG_INPUT_NORMALOS
sg_vNormalVS.x = dot(pa_worldTransform0.xyz, SG_INPUT_NORMALOS.xyz);
sg_vNormalVS.y = dot(pa_worldTransform1.xyz, SG_INPUT_NORMALOS.xyz);
sg_vNormalVS.z = dot(pa_worldTransform2.xyz, SG_INPUT_NORMALOS.xyz);
sg_vNormalVS = g_mWVIT * sg_vNormalVS;
sg_vNormalVS = normalize(sg_vNormalVS);
#endif
sg_vPosVS = g_mWV * pa_posWS;
sg_vPosPS = g_mWVP * pa_posWS;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment