Remove debug code
This commit is contained in:
@@ -139,7 +139,7 @@ void PS_Forward(
|
||||
|
||||
if(TraceSDFSoftwareReflections(gBuffer, reflectWS, surfaceAtlas)){
|
||||
float3 screenColor = sceneColorTexture.SampleLevel(SamplerPointClamp, hit.xy, 0).rgb;
|
||||
reflections = lerp(2 * surfaceAtlas, float4(screenColor, 1), hit.z);
|
||||
reflections = lerp(surfaceAtlas, float4(screenColor, 1), hit.z);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -151,7 +151,7 @@ float4 PS_RayTracePass(Quad_VS2PS input) : SV_Target0
|
||||
float4 surfaceAtlas = SampleGlobalSurfaceAtlas(GlobalSurfaceAtlas, GlobalSurfaceAtlasChunks, RWGlobalSurfaceAtlasCulledObjects, GlobalSurfaceAtlasObjects, GlobalSurfaceAtlasDepth, GlobalSurfaceAtlasTex, hitPosition, -reflectWS, surfaceThreshold);
|
||||
// Now the sdf reflection part is significantly darker than the screen space part
|
||||
// TODO: Maybe multiply surfaceAtlas by a constant to make it brighter, adding 2* looks fine
|
||||
result = lerp(2 * surfaceAtlas, float4(result.rgb, 1), result.a);
|
||||
result = lerp(surfaceAtlas, float4(result.rgb, 1), result.a);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user