Skip to content

Commit 2050c95

Browse files
committed
fix fwd lighting when async shadow order is enabled
fix fwd lighting when async shadow order is enabled
1 parent 57bbd45 commit 2050c95

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Assets/ScriptableRenderPipeline/fptl/FptlLighting.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,11 @@ void ExecuteRenderLoop(Camera camera, CullResults cullResults, ScriptableRenderC
10731073

10741074
// render shadow maps (for mobile shadow map rendering should happen before we render g-buffer).
10751075
// on GCN it needs to be after to leverage async compute since we need the depth-buffer for optimal light list building.
1076-
if(k_UseAsyncCompute) RenderShadowMaps(cullResults, loop);
1076+
if(k_UseAsyncCompute)
1077+
{
1078+
RenderShadowMaps(cullResults, loop);
1079+
loop.SetupCameraProperties(camera);
1080+
}
10771081

10781082
// Push all global params
10791083
var numDirLights = UpdateDirectionalLights(camera, cullResults.visibleLights);

0 commit comments

Comments
 (0)