Merge branch 'master' of github.com:RobertBeckebans/RBDOOM-3-BFG

This commit is contained in:
Robert Beckebans 2014-08-02 14:36:52 +02:00
commit f6f02b7c71
2 changed files with 2 additions and 2 deletions

View file

@ -78,7 +78,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

@ -78,7 +78,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;