So I am writing a shader and I was setting up the light direction and normal direction to make a lambert shader.
VOUT.normalDirection = normalize( mul(float4(i.normal,0.0),_World2Object).xyz);
float3 lightDirection = normalize(_WorldSpaceLightPos0.xyz);
And the I wonderd, why do I need the normals in object space and the light in world space?
How do I know when I need to put somthing in world space or in object space?
Thanks in advance!