Add IndirectLightingIntensity to Sky for GI intensity control

This commit is contained in:
Wojtek Figat
2024-08-12 15:34:08 +02:00
parent bcb0200435
commit 63bee0c78d
7 changed files with 36 additions and 6 deletions

View File

@@ -35,7 +35,7 @@ GlobalSDFData GlobalSDF;
GlobalSurfaceAtlasData GlobalSurfaceAtlas;
GBufferData GBuffer;
float4 RaysRotation;
float Padding0;
float SkyboxIntensity;
uint ProbesCount;
float ResetBlend;
float TemporalTime;
@@ -397,7 +397,7 @@ void CS_TraceRays(uint3 DispatchThreadId : SV_DispatchThreadID)
else
{
// Ray hits sky
radiance.rgb = Skybox.SampleLevel(SamplerLinearClamp, probeRayDirection, 0).rgb;
radiance.rgb = Skybox.SampleLevel(SamplerLinearClamp, probeRayDirection, 0).rgb * SkyboxIntensity;
radiance.a = 1e27f; // Sky is the limit
}