Skip to content

Commit 296ee1d

Browse files
pastasfutureAdamStrickUnity
authored andcommitted
Partner/crazyhunter 10.7.0 custom.1 bursted shadowrequests (#88)
* Bursted shadow requests * Removed project-specific differences Co-authored-by: Adam Strick <[email protected]>
1 parent 0bffebd commit 296ee1d

File tree

11 files changed

+2087
-269
lines changed

11 files changed

+2087
-269
lines changed

com.unity.render-pipelines.high-definition/Runtime/Lighting/Light/HDAdditionalLightData.Types.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@ public SpotLightShape spotLightShape
297297
if (!supportedUnits.Any(u => u == lightUnit))
298298
lightUnit = supportedUnits.First();
299299
UpdateAllLightValues();
300+
301+
HDLightRenderDatabase.instance.GetShadowRequestUpdateInfoAsRef(lightEntity).spotLightShape = m_SpotLightShape;
300302
}
301303
}
302304

@@ -317,6 +319,8 @@ public AreaLightShape areaLightShape
317319
if (type == HDLightType.Area)
318320
ResolveAreaShape();
319321
UpdateAllLightValues();
322+
323+
HDLightRenderDatabase.instance.GetShadowRequestUpdateInfoAsRef(lightEntity).areaLightShape = m_AreaLightShape;
320324
}
321325
}
322326

0 commit comments

Comments
 (0)