mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2024-12-02 08:51:57 +00:00
ambient fix works
This commit is contained in:
parent
f5dd0611d5
commit
2bd87d1a88
2 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ void main( PS_IN fragment, out PS_OUT result ) {
|
||||||
|
|
||||||
half3 diffuseColor = diffuseMap * rpDiffuseModifier.xyz;
|
half3 diffuseColor = diffuseMap * rpDiffuseModifier.xyz;
|
||||||
half3 specularColor = specMap.xyz * specularContribution * rpSpecularModifier.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.xyz = ( diffuseColor + specularColor ) * lightColor * fragment.color.xyz;
|
||||||
result.color.w = 1.0;
|
result.color.w = 1.0;
|
||||||
|
|
|
@ -71,7 +71,7 @@ void main( PS_IN fragment, out PS_OUT result ) {
|
||||||
|
|
||||||
half3 diffuseColor = diffuseMap * rpDiffuseModifier.xyz;
|
half3 diffuseColor = diffuseMap * rpDiffuseModifier.xyz;
|
||||||
half3 specularColor = specMap.xyz * specularContribution * rpSpecularModifier.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.xyz = ( diffuseColor + specularColor ) * lightColor * fragment.color.xyz;
|
||||||
result.color.w = 1.0;
|
result.color.w = 1.0;
|
||||||
|
|
Loading…
Reference in a new issue