mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:23:51 +00:00
make the vertex colours only affect diffuse, this caused some areas to
be darker than they should be
This commit is contained in:
parent
8910b0d471
commit
b2109a1302
1 changed files with 2 additions and 2 deletions
|
@ -407,8 +407,8 @@ void NIFLoader::createMaterial(const String &name,
|
|||
}
|
||||
|
||||
outStream <<
|
||||
" float3 lightingFinal = lightColour.xyz * diffuse.xyz + ambient.xyz * lightAmbient.xyz + emissive.xyz; \n"
|
||||
" oColor.xyz = lerp(lightingFinal * tex.xyz * vertexColour.xyz, fogColour, fogValue); \n"
|
||||
" float3 lightingFinal = lightColour.xyz * diffuse.xyz * vertexColour.xyz + ambient.xyz * lightAmbient.xyz + emissive.xyz; \n"
|
||||
" oColor.xyz = lerp(lightingFinal * tex.xyz, fogColour, fogValue); \n"
|
||||
" oColor.a = tex.a * diffuse.a * vertexColour.a; \n"
|
||||
"}";
|
||||
fragment->setSource(outStream.str());
|
||||
|
|
Loading…
Reference in a new issue