Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ VoxelLighting EvaluateVoxelLightingLocal(LightLoopContext context, uint groupIdx
float3 L = -light.forward;
float3 lightToSample = posInput.positionWS - light.positionRWS;
float distProj = dot(lightToSample, light.forward);
float4 distances = float4(1, 1, 1, distProj);
float4 distances = float4(distProj, distProj * distProj, 1.0f, distProj);

float4 lightColor = EvaluateLight_Punctual(context, posInput, light, L, distances);
// The volumetric light dimmer, unlike the regular light dimmer, is not pre-multiplied.
Expand Down
Loading