Remove debug code

This commit is contained in:
ExMatics HydrogenC
2024-06-18 21:47:11 +08:00
parent 14ce4d4394
commit 9b3ff05af7
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}
}

View File

@@ -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