forked from mirror/openmw-tes3mp
lighting fix
This commit is contained in:
parent
b2109a1302
commit
332671b43d
1 changed files with 1 additions and 1 deletions
|
@ -396,7 +396,7 @@ void NIFLoader::createMaterial(const String &name,
|
|||
for (int i=0; i<num_lights; ++i)
|
||||
{
|
||||
outStream <<
|
||||
" float3 lightDir"<<i<<" = lightPositionObjSpace"<<i<<".xyz - positionObjSpace.xyz; \n"
|
||||
" float3 lightDir"<<i<<" = lightPositionObjSpace"<<i<<".xyz - (positionObjSpace.xyz * lightPositionObjSpace"<<i<<".w); \n"
|
||||
|
||||
// pre-multiply light color with attenuation factor
|
||||
" d = length( lightDir"<<i<<" ); \n"
|
||||
|
|
Loading…
Reference in a new issue