mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-19 03:39:58 +00:00
Fix initialization problem
This commit is contained in:
parent
0f6fd80294
commit
ac0a23a68d
@ -146,7 +146,7 @@
|
|||||||
#if VERTEX_LIGHTING
|
#if VERTEX_LIGHTING
|
||||||
float3 lightDir;
|
float3 lightDir;
|
||||||
float d;
|
float d;
|
||||||
|
lightResult = float3(0,0,0);
|
||||||
@shForeach(@shGlobalSettingString(num_lights))
|
@shForeach(@shGlobalSettingString(num_lights))
|
||||||
lightDir = lightPosition[@shIterator].xyz - (shInputPosition.xyz * lightPosition[@shIterator].w);
|
lightDir = lightPosition[@shIterator].xyz - (shInputPosition.xyz * lightPosition[@shIterator].w);
|
||||||
d = length(lightDir);
|
d = length(lightDir);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user