Skip to content

Commit dd4d1a7

Browse files
committed
Update to current sorting code from Kingdom of Night
1 parent 20d7fad commit dd4d1a7

15 files changed

+578
-475
lines changed

Assets/Scenes/DemoScene.unity

Lines changed: 108 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ RenderSettings:
4343
--- !u!157 &3
4444
LightmapSettings:
4545
m_ObjectHideFlags: 0
46-
serializedVersion: 11
46+
serializedVersion: 12
4747
m_GIWorkflowMode: 1
4848
m_GISettings:
4949
serializedVersion: 2
@@ -54,14 +54,15 @@ LightmapSettings:
5454
m_EnableBakedLightmaps: 0
5555
m_EnableRealtimeLightmaps: 0
5656
m_LightmapEditorSettings:
57-
serializedVersion: 10
57+
serializedVersion: 12
5858
m_Resolution: 2
5959
m_BakeResolution: 40
6060
m_AtlasSize: 1024
6161
m_AO: 0
6262
m_AOMaxDistance: 1
6363
m_CompAOExponent: 1
6464
m_CompAOExponentDirect: 0
65+
m_ExtractAmbientOcclusion: 0
6566
m_Padding: 2
6667
m_LightmapParameters: {fileID: 0}
6768
m_LightmapsBakeMode: 1
@@ -76,20 +77,28 @@ LightmapSettings:
7677
m_PVRDirectSampleCount: 32
7778
m_PVRSampleCount: 500
7879
m_PVRBounces: 2
80+
m_PVREnvironmentSampleCount: 500
81+
m_PVREnvironmentReferencePointCount: 2048
82+
m_PVRFilteringMode: 2
83+
m_PVRDenoiserTypeDirect: 0
84+
m_PVRDenoiserTypeIndirect: 0
85+
m_PVRDenoiserTypeAO: 0
7986
m_PVRFilterTypeDirect: 0
8087
m_PVRFilterTypeIndirect: 0
8188
m_PVRFilterTypeAO: 0
82-
m_PVRFilteringMode: 1
89+
m_PVREnvironmentMIS: 0
8390
m_PVRCulling: 1
8491
m_PVRFilteringGaussRadiusDirect: 1
8592
m_PVRFilteringGaussRadiusIndirect: 5
8693
m_PVRFilteringGaussRadiusAO: 2
8794
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
8895
m_PVRFilteringAtrousPositionSigmaIndirect: 2
8996
m_PVRFilteringAtrousPositionSigmaAO: 1
90-
m_ShowResolutionOverlay: 1
97+
m_ExportTrainingData: 0
98+
m_TrainingDataDestination: TrainingData
99+
m_LightProbeSampleCountMultiplier: 4
91100
m_LightingDataAsset: {fileID: 0}
92-
m_UseShadowmask: 1
101+
m_LightingSettings: {fileID: 837981395}
93102
--- !u!196 &4
94103
NavMeshSettings:
95104
serializedVersion: 2
@@ -109,6 +118,8 @@ NavMeshSettings:
109118
manualTileSize: 0
110119
tileSize: 256
111120
accuratePlacement: 0
121+
maxJobWorkers: 0
122+
preserveTilesOutsideBounds: 0
112123
debug:
113124
m_Flags: 0
114125
m_NavMeshData: {fileID: 0}
@@ -121,10 +132,10 @@ GameObject:
121132
serializedVersion: 6
122133
m_Component:
123134
- component: {fileID: 390935948}
135+
- component: {fileID: 390935951}
124136
- component: {fileID: 390935947}
125137
- component: {fileID: 390935949}
126138
- component: {fileID: 390935950}
127-
- component: {fileID: 390935951}
128139
- component: {fileID: 390935952}
129140
m_Layer: 0
130141
m_Name: Player
@@ -144,9 +155,12 @@ SpriteRenderer:
144155
m_CastShadows: 0
145156
m_ReceiveShadows: 0
146157
m_DynamicOccludee: 1
158+
m_StaticShadowCaster: 0
147159
m_MotionVectors: 1
148160
m_LightProbeUsage: 1
149161
m_ReflectionProbeUsage: 1
162+
m_RayTracingMode: 0
163+
m_RayTraceProcedural: 0
150164
m_RenderingLayerMask: 1
151165
m_RendererPriority: 0
152166
m_Materials:
@@ -158,6 +172,7 @@ SpriteRenderer:
158172
m_ProbeAnchor: {fileID: 0}
159173
m_LightProbeVolumeOverride: {fileID: 0}
160174
m_ScaleInLightmap: 1
175+
m_ReceiveGI: 1
161176
m_PreserveUVs: 0
162177
m_IgnoreNormalsForChartDetection: 0
163178
m_ImportantGI: 0
@@ -189,8 +204,9 @@ Transform:
189204
m_PrefabAsset: {fileID: 0}
190205
m_GameObject: {fileID: 390935946}
191206
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
192-
m_LocalPosition: {x: 0.97, y: 0.48, z: 13.285156}
207+
m_LocalPosition: {x: 0.97, y: 0.48, z: 0}
193208
m_LocalScale: {x: 1, y: 1, z: 1}
209+
m_ConstrainProportionsScale: 0
194210
m_Children: []
195211
m_Father: {fileID: 0}
196212
m_RootOrder: 1
@@ -209,7 +225,6 @@ MonoBehaviour:
209225
m_EditorClassIdentifier:
210226
isMovable: 1
211227
renderBelowAll: 0
212-
movingDependencies: []
213228
sortType: 0
214229
SorterPositionOffset: {x: 0, y: -1.6350486, z: 0}
215230
SorterPositionOffset2: {x: 0, y: 0, z: 0}
@@ -328,7 +343,6 @@ MonoBehaviour:
328343
m_EditorClassIdentifier:
329344
isMovable: 1
330345
renderBelowAll: 0
331-
movingDependencies: []
332346
sortType: 1
333347
SorterPositionOffset: {x: 2.2763543, y: 0.1265924, z: 0}
334348
SorterPositionOffset2: {x: -2.3427062, y: -1.3827682, z: 0}
@@ -345,9 +359,12 @@ SpriteRenderer:
345359
m_CastShadows: 0
346360
m_ReceiveShadows: 0
347361
m_DynamicOccludee: 1
362+
m_StaticShadowCaster: 0
348363
m_MotionVectors: 1
349364
m_LightProbeUsage: 1
350365
m_ReflectionProbeUsage: 1
366+
m_RayTracingMode: 0
367+
m_RayTraceProcedural: 0
351368
m_RenderingLayerMask: 1
352369
m_RendererPriority: 0
353370
m_Materials:
@@ -359,6 +376,7 @@ SpriteRenderer:
359376
m_ProbeAnchor: {fileID: 0}
360377
m_LightProbeVolumeOverride: {fileID: 0}
361378
m_ScaleInLightmap: 1
379+
m_ReceiveGI: 1
362380
m_PreserveUVs: 0
363381
m_IgnoreNormalsForChartDetection: 0
364382
m_ImportantGI: 0
@@ -392,6 +410,7 @@ Transform:
392410
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
393411
m_LocalPosition: {x: -6.36, y: -0.94, z: 13.285156}
394412
m_LocalScale: {x: 1, y: 1, z: 1}
413+
m_ConstrainProportionsScale: 0
395414
m_Children: []
396415
m_Father: {fileID: 0}
397416
m_RootOrder: 5
@@ -458,9 +477,6 @@ MonoBehaviour:
458477
m_EditorClassIdentifier:
459478
isMovable: 1
460479
renderBelowAll: 0
461-
movingDependencies:
462-
- {fileID: 1786415548}
463-
- {fileID: 390935949}
464480
sortType: 1
465481
SorterPositionOffset: {x: 2.3606417, y: -1.3737345, z: 0}
466482
SorterPositionOffset2: {x: -2.3105102, y: 0.19493532, z: 0}
@@ -477,9 +493,12 @@ SpriteRenderer:
477493
m_CastShadows: 0
478494
m_ReceiveShadows: 0
479495
m_DynamicOccludee: 1
496+
m_StaticShadowCaster: 0
480497
m_MotionVectors: 1
481498
m_LightProbeUsage: 1
482499
m_ReflectionProbeUsage: 1
500+
m_RayTracingMode: 0
501+
m_RayTraceProcedural: 0
483502
m_RenderingLayerMask: 1
484503
m_RendererPriority: 0
485504
m_Materials:
@@ -491,6 +510,7 @@ SpriteRenderer:
491510
m_ProbeAnchor: {fileID: 0}
492511
m_LightProbeVolumeOverride: {fileID: 0}
493512
m_ScaleInLightmap: 1
513+
m_ReceiveGI: 1
494514
m_PreserveUVs: 0
495515
m_IgnoreNormalsForChartDetection: 0
496516
m_ImportantGI: 0
@@ -524,10 +544,73 @@ Transform:
524544
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
525545
m_LocalPosition: {x: 2.8, y: -2.28, z: 13.285156}
526546
m_LocalScale: {x: 1, y: 1, z: 1}
547+
m_ConstrainProportionsScale: 0
527548
m_Children: []
528549
m_Father: {fileID: 0}
529550
m_RootOrder: 4
530551
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
552+
--- !u!850595691 &837981395
553+
LightingSettings:
554+
m_ObjectHideFlags: 0
555+
m_CorrespondingSourceObject: {fileID: 0}
556+
m_PrefabInstance: {fileID: 0}
557+
m_PrefabAsset: {fileID: 0}
558+
m_Name: Settings.lighting
559+
serializedVersion: 4
560+
m_GIWorkflowMode: 1
561+
m_EnableBakedLightmaps: 0
562+
m_EnableRealtimeLightmaps: 0
563+
m_RealtimeEnvironmentLighting: 1
564+
m_BounceScale: 1
565+
m_AlbedoBoost: 1
566+
m_IndirectOutputScale: 1
567+
m_UsingShadowmask: 1
568+
m_BakeBackend: 1
569+
m_LightmapMaxSize: 1024
570+
m_BakeResolution: 40
571+
m_Padding: 2
572+
m_LightmapCompression: 3
573+
m_AO: 0
574+
m_AOMaxDistance: 1
575+
m_CompAOExponent: 1
576+
m_CompAOExponentDirect: 0
577+
m_ExtractAO: 0
578+
m_MixedBakeMode: 2
579+
m_LightmapsBakeMode: 1
580+
m_FilterMode: 1
581+
m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0}
582+
m_ExportTrainingData: 0
583+
m_TrainingDataDestination: TrainingData
584+
m_RealtimeResolution: 2
585+
m_ForceWhiteAlbedo: 0
586+
m_ForceUpdates: 0
587+
m_FinalGather: 0
588+
m_FinalGatherRayCount: 256
589+
m_FinalGatherFiltering: 1
590+
m_PVRCulling: 1
591+
m_PVRSampling: 1
592+
m_PVRDirectSampleCount: 32
593+
m_PVRSampleCount: 500
594+
m_PVREnvironmentSampleCount: 500
595+
m_PVREnvironmentReferencePointCount: 2048
596+
m_LightProbeSampleCountMultiplier: 4
597+
m_PVRBounces: 2
598+
m_PVRMinBounces: 2
599+
m_PVREnvironmentMIS: 0
600+
m_PVRFilteringMode: 2
601+
m_PVRDenoiserTypeDirect: 0
602+
m_PVRDenoiserTypeIndirect: 0
603+
m_PVRDenoiserTypeAO: 0
604+
m_PVRFilterTypeDirect: 0
605+
m_PVRFilterTypeIndirect: 0
606+
m_PVRFilterTypeAO: 0
607+
m_PVRFilteringGaussRadiusDirect: 1
608+
m_PVRFilteringGaussRadiusIndirect: 5
609+
m_PVRFilteringGaussRadiusAO: 2
610+
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
611+
m_PVRFilteringAtrousPositionSigmaIndirect: 2
612+
m_PVRFilteringAtrousPositionSigmaAO: 1
613+
m_PVRTiledBaking: 0
531614
--- !u!1 &957813590
532615
GameObject:
533616
m_ObjectHideFlags: 0
@@ -566,9 +649,10 @@ Camera:
566649
m_ClearFlags: 1
567650
m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0}
568651
m_projectionMatrixMode: 1
652+
m_GateFitMode: 2
653+
m_FOVAxisMode: 0
569654
m_SensorSize: {x: 36, y: 24}
570655
m_LensShift: {x: 0, y: 0}
571-
m_GateFitMode: 2
572656
m_FocalLength: 50
573657
m_NormalizedViewPortRect:
574658
serializedVersion: 2
@@ -606,6 +690,7 @@ Transform:
606690
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
607691
m_LocalPosition: {x: 0, y: 0, z: -10}
608692
m_LocalScale: {x: 1, y: 1, z: 1}
693+
m_ConstrainProportionsScale: 0
609694
m_Children: []
610695
m_Father: {fileID: 0}
611696
m_RootOrder: 0
@@ -659,8 +744,6 @@ MonoBehaviour:
659744
m_EditorClassIdentifier:
660745
isMovable: 1
661746
renderBelowAll: 0
662-
movingDependencies:
663-
- {fileID: 516553216}
664747
sortType: 0
665748
SorterPositionOffset: {x: 0.12794042, y: -2.6825585, z: 0}
666749
SorterPositionOffset2: {x: 0, y: 0, z: 0}
@@ -677,9 +760,12 @@ SpriteRenderer:
677760
m_CastShadows: 0
678761
m_ReceiveShadows: 0
679762
m_DynamicOccludee: 1
763+
m_StaticShadowCaster: 0
680764
m_MotionVectors: 1
681765
m_LightProbeUsage: 1
682766
m_ReflectionProbeUsage: 1
767+
m_RayTracingMode: 0
768+
m_RayTraceProcedural: 0
683769
m_RenderingLayerMask: 1
684770
m_RendererPriority: 0
685771
m_Materials:
@@ -691,6 +777,7 @@ SpriteRenderer:
691777
m_ProbeAnchor: {fileID: 0}
692778
m_LightProbeVolumeOverride: {fileID: 0}
693779
m_ScaleInLightmap: 1
780+
m_ReceiveGI: 1
694781
m_PreserveUVs: 0
695782
m_IgnoreNormalsForChartDetection: 0
696783
m_ImportantGI: 0
@@ -724,6 +811,7 @@ Transform:
724811
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
725812
m_LocalPosition: {x: -3.78, y: -0.1, z: 13.285156}
726813
m_LocalScale: {x: 1, y: 1, z: 1}
814+
m_ConstrainProportionsScale: 0
727815
m_Children: []
728816
m_Father: {fileID: 0}
729817
m_RootOrder: 2
@@ -777,7 +865,6 @@ MonoBehaviour:
777865
m_EditorClassIdentifier:
778866
isMovable: 1
779867
renderBelowAll: 0
780-
movingDependencies: []
781868
sortType: 0
782869
SorterPositionOffset: {x: 0.12794018, y: -2.6825585, z: 0}
783870
SorterPositionOffset2: {x: 0, y: 0, z: 0}
@@ -794,9 +881,12 @@ SpriteRenderer:
794881
m_CastShadows: 0
795882
m_ReceiveShadows: 0
796883
m_DynamicOccludee: 1
884+
m_StaticShadowCaster: 0
797885
m_MotionVectors: 1
798886
m_LightProbeUsage: 1
799887
m_ReflectionProbeUsage: 1
888+
m_RayTracingMode: 0
889+
m_RayTraceProcedural: 0
800890
m_RenderingLayerMask: 1
801891
m_RendererPriority: 0
802892
m_Materials:
@@ -808,6 +898,7 @@ SpriteRenderer:
808898
m_ProbeAnchor: {fileID: 0}
809899
m_LightProbeVolumeOverride: {fileID: 0}
810900
m_ScaleInLightmap: 1
901+
m_ReceiveGI: 1
811902
m_PreserveUVs: 0
812903
m_IgnoreNormalsForChartDetection: 0
813904
m_ImportantGI: 0
@@ -841,6 +932,7 @@ Transform:
841932
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
842933
m_LocalPosition: {x: 5.65, y: 0.84, z: 13.285156}
843934
m_LocalScale: {x: 1, y: 1, z: 1}
935+
m_ConstrainProportionsScale: 0
844936
m_Children: []
845937
m_Father: {fileID: 0}
846938
m_RootOrder: 3

0 commit comments

Comments
 (0)