diff --git a/base/renderprogs/interactionAmbient.pixel b/base/renderprogs/interactionAmbient.pixel index 5c10c8f6..a01f8b6d 100644 --- a/base/renderprogs/interactionAmbient.pixel +++ b/base/renderprogs/interactionAmbient.pixel @@ -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; diff --git a/base/renderprogs/interactionAmbient_skinned.pixel b/base/renderprogs/interactionAmbient_skinned.pixel index 7e06b48e..64e83913 100644 --- a/base/renderprogs/interactionAmbient_skinned.pixel +++ b/base/renderprogs/interactionAmbient_skinned.pixel @@ -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;