More shader warnign fixes

This commit is contained in:
2026-07-15 23:00:27 +02:00
parent f89e74c3de
commit 5f906c2353
3 changed files with 5 additions and 5 deletions
Binary file not shown.
+2 -2
View File
@@ -295,7 +295,7 @@ float3 SampleDDGIIrradianceCascade(DDGIData data, Texture2D<snorm float4> probes
// Loop over the closest probes to accumulate their contributions
float4 totalIrradiance = float4(0, 0, 0, 0);
float4 totalIrradianceNonDir = float4(0, 0, 0, 0);
float fallbacks = 0;
uint fallbacks = 0;
for (uint i = 0; i < 8; i++)
{
DDGIProbeSample probe = SampleDDGIProbe(data, probesData, probesDistance, worldPosition, worldNormal, cascade, base, i, fallbacks);
@@ -377,7 +377,7 @@ float3 SampleDDGISpecularCascade(DDGIData data, Texture2D<snorm float4> probesDa
// Loop over the closest probes to accumulate their contributions
float4 totalRadiance = float4(0, 0, 0, 0);
float fallbacks = 0;
uint fallbacks = 0;
for (uint i = 0; i < 8; i++)
{
DDGIProbeSample probe = SampleDDGIProbe(data, probesData, probesDistance, worldPosition, worldNormal, cascade, base, i, fallbacks);
+1 -1
View File
@@ -355,7 +355,7 @@ void CS_FinalIntegration(uint3 DispatchThreadId : SV_DispatchThreadID)
float3 scatteringIntegratedOverSlice = (scatteringExtinction.rgb - scatteringExtinction.rgb * transmittance) / max(scatteringExtinction.w, 0.00001f);
// Apply distance fade
float distanceFade = Remap(layerIndex, GridSizeInt.z * 0.8f, GridSizeInt.z - 1, 1, 0);
float distanceFade = Remap((float)layerIndex, GridSizeInt.z * 0.8f, (float)GridSizeInt.z - 1, 1, 0);
scatteringIntegratedOverSlice *= distanceFade;
// Accumulate