File tree Expand file tree Collapse file tree 3 files changed +2
-48
lines changed
com.unity.render-pipelines.high-definition/Runtime/Lighting/Light Expand file tree Collapse file tree 3 files changed +2
-48
lines changed Original file line number Diff line number Diff line change @@ -2587,17 +2587,11 @@ private void Start()
2587
2587
}
2588
2588
2589
2589
// 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 ( )
2596
2591
{
2597
2592
// Prevent any unwanted sync when not in HDRP (case 1217575)
2598
2593
if ( HDRenderPipeline . currentPipeline == null )
2599
2594
return ;
2600
- #endif
2601
2595
2602
2596
// We force the animation in the editor and in play mode when there is an animator component attached to the light
2603
2597
#if ! UNITY_EDITOR
@@ -2947,8 +2941,6 @@ void UpdateLightIntensity()
2947
2941
2948
2942
void Awake ( )
2949
2943
{
2950
- HDRPUpdates . LazyInit ( ) ;
2951
-
2952
2944
Migrate ( ) ;
2953
2945
2954
2946
// 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)
3698
3690
/// <summary>Tell if the light is overlapping for the light overlap debug mode</summary>
3699
3691
internal bool IsOverlapping ( )
3700
3692
{
3701
- var baking = legacyLight . bakingOutput ;
3693
+ var baking = GetComponent < Light > ( ) . bakingOutput ;
3702
3694
bool isOcclusionSeparatelyBaked = baking . occlusionMaskChannel != - 1 ;
3703
3695
bool isDirectUsingBakedOcclusion = baking . mixedLightingMode == MixedLightingMode . Shadowmask || baking . mixedLightingMode == MixedLightingMode . Subtractive ;
3704
3696
return isDirectUsingBakedOcclusion && ! isOcclusionSeparatelyBaked ;
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments