Merge branch 'alpha40_BandingBreakup' of https://github.com/Azaezel/Torque3D into Preview4_0_w_alph40_cleanups

This commit is contained in:
Areloch 2020-05-16 02:16:52 -05:00
commit 638a515702
5 changed files with 29 additions and 13 deletions

View file

@ -287,7 +287,7 @@ function HDRPostFX::onEnabled( %this )
// Set the right global shader define for HDR.
if ( %format $= "GFXFormatR10G10B10A2" )
addGlobalShaderMacro( "TORQUE_HDR_RGB10" );
else if ( %format $= "GFXFormatR16G16B16A16" )
else if ( %format $= "GFXFormatR16G16B16A16F" )
addGlobalShaderMacro( "TORQUE_HDR_RGB16" );
echo( "HDR FORMAT: " @ %format );

View file

@ -34,7 +34,7 @@ function initRenderManager()
enabled = "false";
//When hdr is enabled this will be changed to the appropriate format
format = "GFXFormatR8G8B8A8_SRGB";
format = "GFXFormatR16G16B16A16F";
depthFormat = "GFXFormatD24S8";
aaLevel = 0; // -1 = match backbuffer

View file

@ -377,7 +377,7 @@ float3 boxProject(float3 wsPosition, float3 wsReflectVec, float4x4 worldToObj, f
float dist = min(min(furthestPlane.x, furthestPlane.y), furthestPlane.z);
float3 posonbox = wsPosition + wsReflectVec * dist;
return posonbox - refPosition.xyz;
return posonbox-refPosition;
}
float4 computeForwardProbes(Surface surface,