Cool, thanks for that.
How would you go about re-normalising as above? From the diagram, how would you work out where the height of the red area should be?
Cool, thanks for that.
How would you go about re-normalising as above? From the diagram, how would you work out where the height of the red area should be?
All you need is a unit-length normal, you can just add
v_Normal = normalize(v_Normal);
to your fragment shader:)