Skip to content

Commit 3706d80

Browse files
committed
Revert "Combined HDAdditionalLightData LateUpdates (#93)"
This reverts commit d703a00.
1 parent 0c08a39 commit 3706d80

File tree

3 files changed

+2
-48
lines changed

3 files changed

+2
-48
lines changed

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

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2587,17 +2587,11 @@ private void Start()
25872587
}
25882588

25892589
// TODO: There are a lot of old != current checks and assignation in this function, maybe think about using another system ?
2590-
2591-
#if XP_CRAZYHUNTER
2592-
internal void DoLateUpdate()
2593-
{
2594-
#else
2595-
internal void LateUpdate()
2590+
void LateUpdate()
25962591
{
25972592
// Prevent any unwanted sync when not in HDRP (case 1217575)
25982593
if (HDRenderPipeline.currentPipeline == null)
25992594
return;
2600-
#endif
26012595

26022596
// We force the animation in the editor and in play mode when there is an animator component attached to the light
26032597
#if !UNITY_EDITOR
@@ -2947,8 +2941,6 @@ void UpdateLightIntensity()
29472941

29482942
void Awake()
29492943
{
2950-
HDRPUpdates.LazyInit();
2951-
29522944
Migrate();
29532945

29542946
// We need to reconstruct the emissive mesh at Light creation if needed due to not beeing able to change hierarchy in prefab asset.
@@ -3698,7 +3690,7 @@ public ShadowMapType GetShadowMapType(HDLightType lightType)
36983690
/// <summary>Tell if the light is overlapping for the light overlap debug mode</summary>
36993691
internal bool IsOverlapping()
37003692
{
3701-
var baking = legacyLight.bakingOutput;
3693+
var baking = GetComponent<Light>().bakingOutput;
37023694
bool isOcclusionSeparatelyBaked = baking.occlusionMaskChannel != -1;
37033695
bool isDirectUsingBakedOcclusion = baking.mixedLightingMode == MixedLightingMode.Shadowmask || baking.mixedLightingMode == MixedLightingMode.Subtractive;
37043696
return isDirectUsingBakedOcclusion && !isOcclusionSeparatelyBaked;

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

Lines changed: 0 additions & 35 deletions
This file was deleted.

com.unity.render-pipelines.high-definition/Runtime/Lighting/Light/HDRPUpdates.cs.meta

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)