ambient fix works

This commit is contained in:
BielBdeLuna 2014-07-29 12:10:43 +02:00
parent f5dd0611d5
commit 2bd87d1a88
2 changed files with 2 additions and 2 deletions

View file

@ -71,7 +71,7 @@ void main( PS_IN fragment, out PS_OUT result ) {
half3 diffuseColor = diffuseMap * rpDiffuseModifier.xyz;
half3 specularColor = specMap.xyz * specularContribution * rpSpecularModifier.xyz;
half3 lightColor = dot3( lightVector, localNormal ) * lightProj.xyz * lightFalloff.xyz;
half3 lightColor = lightProj.xyz * lightFalloff.xyz; // ambient fix
result.color.xyz = ( diffuseColor + specularColor ) * lightColor * fragment.color.xyz;
result.color.w = 1.0;

View file

@ -71,7 +71,7 @@ void main( PS_IN fragment, out PS_OUT result ) {
half3 diffuseColor = diffuseMap * rpDiffuseModifier.xyz;
half3 specularColor = specMap.xyz * specularContribution * rpSpecularModifier.xyz;
half3 lightColor = dot3( lightVector, localNormal ) * lightProj.xyz * lightFalloff.xyz;
half3 lightColor = lightProj.xyz * lightFalloff.xyz; // ambient fix
result.color.xyz = ( diffuseColor + specularColor ) * lightColor * fragment.color.xyz;
result.color.w = 1.0;