1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-25 07:41:34 +00:00

Fix initialization problem

This commit is contained in:
scrawl 2013-03-03 14:53:47 +01:00
parent 0f6fd80294
commit ac0a23a68d

View file

@ -146,7 +146,7 @@
#if VERTEX_LIGHTING
float3 lightDir;
float d;
lightResult = float3(0,0,0);
@shForeach(@shGlobalSettingString(num_lights))
lightDir = lightPosition[@shIterator].xyz - (shInputPosition.xyz * lightPosition[@shIterator].w);
d = length(lightDir);