mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2024-11-29 15:21:46 +00:00
Merge branch 'master' of github.com:RobertBeckebans/RBDOOM-3-BFG
This commit is contained in:
commit
f6f02b7c71
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue