Skip to content

Commit f1fe7e7

Browse files
HDRenderLoop: Disable line area light that cause black point (Nan ?) on all objects
1 parent 5aa12b0 commit f1fe7e7

File tree

1 file changed

+3
-1
lines changed
  • Assets/ScriptableRenderLoop/HDRenderLoop/Material/Lit

1 file changed

+3
-1
lines changed

Assets/ScriptableRenderLoop/HDRenderLoop/Material/Lit/Lit.hlsl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,9 @@ void EvaluateBSDF_Area( LightLoopContext lightLoopContext,
941941
#else
942942
if (lightData.lightType == GPULIGHTTYPE_LINE)
943943
{
944-
EvaluateBSDF_Line(lightLoopContext, V, positionWS, preLightData, lightData, bsdfData, diffuseLighting, specularLighting);
944+
diffuseLighting = float3(0.0, 0.0, 0.0);
945+
specularLighting = float3(0.0, 0.0, 0.0);
946+
// EvaluateBSDF_Line(lightLoopContext, V, positionWS, preLightData, lightData, bsdfData, diffuseLighting, specularLighting);
945947
return;
946948
}
947949

0 commit comments

Comments
 (0)