mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-30 17:45:21 +00:00
linearizes fog color so it falls within the same scale system as ambient and the like
This commit is contained in:
parent
8cae1e5dcb
commit
57bd962b33
2 changed files with 2 additions and 2 deletions
|
|
@ -43,5 +43,5 @@ float4 main( PFXVertToPix IN ) : TORQUE_TARGET0
|
|||
fogData.y,
|
||||
fogData.z );
|
||||
|
||||
return hdrEncode( float4( fogColor.rgb, 1.0 - saturate( factor ) ) );
|
||||
return hdrEncode( float4( toLinear(fogColor.rgb), 1.0 - saturate( factor ) ) );
|
||||
}
|
||||
|
|
@ -48,5 +48,5 @@ void main()
|
|||
fogData.y,
|
||||
fogData.z );
|
||||
|
||||
OUT_col = hdrEncode( vec4( fogColor.rgb, 1.0 - saturate( factor ) ) );
|
||||
OUT_col = hdrEncode( vec4( toLinear(fogColor.rgb), 1.0 - saturate( factor ) ) );
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue