浏览代码

fix double lighting scene loading, switch face on key down only

/main/ME
etienne cella 5 年前
当前提交
ebc8f5f7
共有 9 个文件被更改,包括 824 次插入752 次删除
  1. 3
      Assets/ClusterDisplay/Scripts/CubemapCameraController.cs
  2. 17
      Assets/Scenes/Demo/Demo.unity
  3. 914
      Assets/Scenes/Demo/Demo_LI_Day.unity
  4. 584
      Assets/Scenes/Demo/Demo_LI_Sunset.unity
  5. 2
      Assets/Scripts/LensFlare/HDRPLensFlare.cs
  6. 45
      Assets/ClusterDisplay/Scripts/DebugShadows.cs
  7. 11
      Assets/ClusterDisplay/Scripts/DebugShadows.cs.meta

3
Assets/ClusterDisplay/Scripts/CubemapCameraController.cs


void Update()
{
// B + left or right arrow to switch orientation
if (Input.GetKey(KeyCode.B))
if (Input.GetKeyDown(KeyCode.B))
Next();
}

17
Assets/Scenes/Demo/Demo.unity


m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 1047.346, g: 1374.2314, b: 1765.9596, a: 1}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:

m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!114 &46401060
MonoBehaviour:
m_ObjectHideFlags: 0

serializedVersion: 6
m_Component:
- component: {fileID: 795942438}
- component: {fileID: 795942437}
m_Layer: 0
m_Name: Debug
m_TagString: Untagged

m_IsActive: 1
--- !u!114 &795942437
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 795942436}
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8edd9f94dd48718438a0dcc33a5d3d81, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!4 &795942438
Transform:
m_ObjectHideFlags: 0

914
Assets/Scenes/Demo/Demo_LI_Day.unity
文件差异内容过多而无法显示
查看文件

584
Assets/Scenes/Demo/Demo_LI_Sunset.unity


m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
m_IndirectSpecularColor: {r: 1045.4666, g: 1371.8113, b: 1762.956, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:

debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!21 &134793425
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: CustomRenderTexture/Scrolling_2layers
m_Shader: {fileID: 4800000, guid: e11971c35d6ca404b91aa52ef763e5eb, type: 3}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _Tex:
m_Texture: {fileID: 2800000, guid: 21efd174e67a1a8408fda6e0d637f109, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Tex2:
m_Texture: {fileID: 2800000, guid: 21efd174e67a1a8408fda6e0d637f109, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats: []
m_Colors:
- _Speed: {r: 0.15, g: 0.02, b: 0.3, a: 0.02}
--- !u!1 &212868448
GameObject:
m_ObjectHideFlags: 0

Actions:
- Description: Select script
Target: {fileID: 11500000, guid: ad8473dd79162b84ba2db941e6113798, type: 3}
--- !u!86 &293755747
CustomRenderTexture:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name:
m_ImageContentsHash:
serializedVersion: 2
Hash: 00000000000000000000000000000000
m_ForcedFallbackFormat: 4
m_DownscaleFallback: 0
serializedVersion: 3
m_Width: 256
m_Height: 256
m_AntiAliasing: 1
m_MipCount: -1
m_DepthFormat: 0
m_ColorFormat: 4
m_MipMap: 1
m_GenerateMips: 1
m_SRGB: 1
m_UseDynamicScale: 0
m_BindMS: 0
m_EnableCompatibleFormat: 1
m_TextureSettings:
serializedVersion: 2
m_FilterMode: 1
m_Aniso: 1
m_MipBias: 0
m_WrapU: 0
m_WrapV: 0
m_WrapW: 0
m_Dimension: 2
m_VolumeDepth: 1
m_Material: {fileID: 134793425}
m_InitSource: 0
m_InitMaterial: {fileID: 0}
m_InitColor: {r: 1, g: 1, b: 1, a: 1}
m_InitTexture: {fileID: 0}
m_UpdateMode: 1
m_InitializationMode: 2
m_UpdateZoneSpace: 0
m_CurrentUpdateZoneSpace: 0
m_UpdateZones: []
m_UpdatePeriod: 0
m_ShaderPass: 0
m_CubemapFaceMask: 4294967295
m_DoubleBuffered: 0
m_WrapUpdateZones: 0
--- !u!1 &496188744
GameObject:
m_ObjectHideFlags: 0

Actions:
- Description: Select Directional Light
Target: {fileID: 870159747}
--- !u!114 &520297763
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 59b6606ef2548734bb6d11b9d160bc7e, type: 3}
m_Name:
m_EditorClassIdentifier:
active: 1
m_AdvancedMode: 0
rotation:
m_OverrideState: 0
m_Value: 333
min: 0
max: 360
skyIntensityMode:
m_OverrideState: 0
m_Value: 1
exposure:
m_OverrideState: 0
m_Value: 0.5
multiplier:
m_OverrideState: 0
m_Value: 1
min: 0
upperHemisphereLuxValue:
m_OverrideState: 0
m_Value: 1
min: 0
upperHemisphereLuxColor:
m_OverrideState: 0
m_Value: {x: 0, y: 0, z: 0}
desiredLuxValue:
m_OverrideState: 0
m_Value: 8000
updateMode:
m_OverrideState: 0
m_Value: 0
updatePeriod:
m_OverrideState: 0
m_Value: 0
min: 0
includeSunInBaking:
m_OverrideState: 0
m_Value: 0
hdriSky:
m_OverrideState: 0
m_Value: {fileID: 8900000, guid: 99edcc3e745602e4b9ea93bdcf66565b, type: 3}
enableBackplate:
m_OverrideState: 0
m_Value: 0
backplateType:
m_OverrideState: 0
m_Value: 0
groundLevel:
m_OverrideState: 0
m_Value: 0
scale:
m_OverrideState: 0
m_Value: {x: 32, y: 32}
projectionDistance:
m_OverrideState: 0
m_Value: 16
min: 0.0000001
plateRotation:
m_OverrideState: 0
m_Value: 0
min: 0
max: 360
plateTexRotation:
m_OverrideState: 0
m_Value: 0
min: 0
max: 360
plateTexOffset:
m_OverrideState: 0
m_Value: {x: 0, y: 0}
blendAmount:
m_OverrideState: 0
m_Value: 0
min: 0
max: 100
shadowTint:
m_OverrideState: 0
m_Value: {r: 0.5, g: 0.5, b: 0.5, a: 1}
hdr: 0
showAlpha: 1
showEyeDropper: 1
pointLightShadow:
m_OverrideState: 0
m_Value: 0
dirLightShadow:
m_OverrideState: 0
m_Value: 0
rectLightShadow:
m_OverrideState: 0
m_Value: 0
--- !u!1 &598376747
GameObject:
m_ObjectHideFlags: 0

m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!21 &764746754
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: CustomRenderTexture/Scrolling_2layers
m_Shader: {fileID: 4800000, guid: e11971c35d6ca404b91aa52ef763e5eb, type: 3}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _Tex:
m_Texture: {fileID: 2800000, guid: 21efd174e67a1a8408fda6e0d637f109, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Tex2:
m_Texture: {fileID: 2800000, guid: 21efd174e67a1a8408fda6e0d637f109, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats: []
m_Colors:
- _Speed: {r: 0.15, g: 0.02, b: 0.3, a: 0.02}
--- !u!1 &867483364
GameObject:
m_ObjectHideFlags: 0

e32: 0
e33: 1
m_UseCullingMatrixOverride: 0
m_Cookie: {fileID: 293755747}
m_Cookie: {fileID: 947235925}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0

m_Father: {fileID: 0}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!86 &947235925
CustomRenderTexture:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name:
m_ImageContentsHash:
serializedVersion: 2
Hash: 00000000000000000000000000000000
m_ForcedFallbackFormat: 4
m_DownscaleFallback: 0
serializedVersion: 3
m_Width: 256
m_Height: 256
m_AntiAliasing: 1
m_MipCount: -1
m_DepthFormat: 0
m_ColorFormat: 4
m_MipMap: 1
m_GenerateMips: 1
m_SRGB: 1
m_UseDynamicScale: 0
m_BindMS: 0
m_EnableCompatibleFormat: 1
m_TextureSettings:
serializedVersion: 2
m_FilterMode: 1
m_Aniso: 1
m_MipBias: 0
m_WrapU: 0
m_WrapV: 0
m_WrapW: 0
m_Dimension: 2
m_VolumeDepth: 1
m_Material: {fileID: 764746754}
m_InitSource: 0
m_InitMaterial: {fileID: 0}
m_InitColor: {r: 1, g: 1, b: 1, a: 1}
m_InitTexture: {fileID: 0}
m_UpdateMode: 1
m_InitializationMode: 2
m_UpdateZoneSpace: 0
m_CurrentUpdateZoneSpace: 0
m_UpdateZones: []
m_UpdatePeriod: 0
m_ShaderPass: 0
m_CubemapFaceMask: 4294967295
m_DoubleBuffered: 0
m_WrapUpdateZones: 0
--- !u!1 &1003792604
GameObject:
m_ObjectHideFlags: 0

m_EditorClassIdentifier:
m_MeshRenderer: {fileID: 1016416912}
m_MeshFilter: {fileID: 1016416913}
m_Light: {fileID: 0}
m_Light: {fileID: 870159750}
OcclusionRadius: 12
NearFadeStartDistance: 1
NearFadeEndDistance: 3

m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1016416909}
m_Mesh: {fileID: 1874398892}
m_Mesh: {fileID: 2099648416}
--- !u!114 &1016416914
MonoBehaviour:
m_ObjectHideFlags: 0

- {fileID: 4300050, guid: cd0c9b3e4cdc5834289b0e62821d0f17, type: 3}
m_RenderTargetSize: {x: 512, y: 512}
m_ShowDebugUI: 0
--- !u!114 &1246573742
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 59b6606ef2548734bb6d11b9d160bc7e, type: 3}
m_Name:
m_EditorClassIdentifier:
active: 1
m_AdvancedMode: 0
rotation:
m_OverrideState: 0
m_Value: 333
min: 0
max: 360
skyIntensityMode:
m_OverrideState: 0
m_Value: 1
exposure:
m_OverrideState: 0
m_Value: 0.5
multiplier:
m_OverrideState: 0
m_Value: 1
min: 0
upperHemisphereLuxValue:
m_OverrideState: 0
m_Value: 1
min: 0
upperHemisphereLuxColor:
m_OverrideState: 0
m_Value: {x: 0, y: 0, z: 0}
desiredLuxValue:
m_OverrideState: 0
m_Value: 8000
updateMode:
m_OverrideState: 0
m_Value: 0
updatePeriod:
m_OverrideState: 0
m_Value: 0
min: 0
includeSunInBaking:
m_OverrideState: 0
m_Value: 0
hdriSky:
m_OverrideState: 0
m_Value: {fileID: 8900000, guid: 99edcc3e745602e4b9ea93bdcf66565b, type: 3}
enableBackplate:
m_OverrideState: 0
m_Value: 0
backplateType:
m_OverrideState: 0
m_Value: 0
groundLevel:
m_OverrideState: 0
m_Value: 0
scale:
m_OverrideState: 0
m_Value: {x: 32, y: 32}
projectionDistance:
m_OverrideState: 0
m_Value: 16
min: 0.0000001
plateRotation:
m_OverrideState: 0
m_Value: 0
min: 0
max: 360
plateTexRotation:
m_OverrideState: 0
m_Value: 0
min: 0
max: 360
plateTexOffset:
m_OverrideState: 0
m_Value: {x: 0, y: 0}
blendAmount:
m_OverrideState: 0
m_Value: 0
min: 0
max: 100
shadowTint:
m_OverrideState: 0
m_Value: {r: 0.5, g: 0.5, b: 0.5, a: 1}
hdr: 0
showAlpha: 1
showEyeDropper: 1
pointLightShadow:
m_OverrideState: 0
m_Value: 0
dirLightShadow:
m_OverrideState: 0
m_Value: 0
rectLightShadow:
m_OverrideState: 0
m_Value: 0
--- !u!1 &1310773822
GameObject:
m_ObjectHideFlags: 0

m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!4 &1310773823
Transform:
m_ObjectHideFlags: 0

m_EditorClassIdentifier:
m_Profile: {fileID: 11400000, guid: 466752a7a2452cc4a9ec9be5d67c83b0, type: 2}
m_StaticLightingSkyUniqueID: 1
m_SkySettings: {fileID: 520297763}
m_SkySettings: {fileID: 1246573742}
m_SkySettingsFromProfile: {fileID: 114756142559310666, guid: 466752a7a2452cc4a9ec9be5d67c83b0,
type: 2}
--- !u!1 &1459424988

m_Father: {fileID: 867483365}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!43 &1874398892
--- !u!4 &1947574694 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 4783020418436320, guid: d6d76942c68024a4e841e73d8aff2174,
type: 3}
m_PrefabInstance: {fileID: 2048262197}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1967674238
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1967674239}
m_Layer: 0
m_Name: _________________________________
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1967674239
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1967674238}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &2048262197
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 2147410365}
m_Modifications:
- target: {fileID: 4783020418436320, guid: d6d76942c68024a4e841e73d8aff2174, type: 3}
propertyPath: m_LocalPosition.x
value: 11.658698
objectReference: {fileID: 0}
- target: {fileID: 4783020418436320, guid: d6d76942c68024a4e841e73d8aff2174, type: 3}
propertyPath: m_LocalPosition.y
value: -10.303147
objectReference: {fileID: 0}
- target: {fileID: 4783020418436320, guid: d6d76942c68024a4e841e73d8aff2174, type: 3}
propertyPath: m_LocalPosition.z
value: 36.04293
objectReference: {fileID: 0}
- target: {fileID: 4783020418436320, guid: d6d76942c68024a4e841e73d8aff2174, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4783020418436320, guid: d6d76942c68024a4e841e73d8aff2174, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4783020418436320, guid: d6d76942c68024a4e841e73d8aff2174, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4783020418436320, guid: d6d76942c68024a4e841e73d8aff2174, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4783020418436320, guid: d6d76942c68024a4e841e73d8aff2174, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: d6d76942c68024a4e841e73d8aff2174, type: 3}
--- !u!114 &2098574256
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1275997076444014}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ac5bf3fad4433154bb6dc9ce66d6accc, type: 3}
m_Name:
m_EditorClassIdentifier:
debug: 0
--- !u!182 &2098574257
WindZone:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1275997076444014}
m_Enabled: 1
m_Mode: 0
m_Radius: 20
m_WindMain: 35
m_WindTurbulence: 0.3
m_WindPulseMagnitude: 0.5
m_WindPulseFrequency: 0.01
--- !u!43 &2099648416
Mesh:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}

offset: 0
size: 0
path:
--- !u!4 &1947574694 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 4783020418436320, guid: d6d76942c68024a4e841e73d8aff2174,
type: 3}
m_PrefabInstance: {fileID: 2048262197}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1967674238
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1967674239}
m_Layer: 0
m_Name: _________________________________
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1967674239
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1967674238}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &2048262197
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 2147410365}
m_Modifications:
- target: {fileID: 4783020418436320, guid: d6d76942c68024a4e841e73d8aff2174, type: 3}
propertyPath: m_LocalPosition.x
value: 11.658698
objectReference: {fileID: 0}
- target: {fileID: 4783020418436320, guid: d6d76942c68024a4e841e73d8aff2174, type: 3}
propertyPath: m_LocalPosition.y
value: -10.303147
objectReference: {fileID: 0}
- target: {fileID: 4783020418436320, guid: d6d76942c68024a4e841e73d8aff2174, type: 3}
propertyPath: m_LocalPosition.z
value: 36.04293
objectReference: {fileID: 0}
- target: {fileID: 4783020418436320, guid: d6d76942c68024a4e841e73d8aff2174, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4783020418436320, guid: d6d76942c68024a4e841e73d8aff2174, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4783020418436320, guid: d6d76942c68024a4e841e73d8aff2174, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4783020418436320, guid: d6d76942c68024a4e841e73d8aff2174, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4783020418436320, guid: d6d76942c68024a4e841e73d8aff2174, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: d6d76942c68024a4e841e73d8aff2174, type: 3}
--- !u!114 &2098574256
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1275997076444014}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ac5bf3fad4433154bb6dc9ce66d6accc, type: 3}
m_Name:
m_EditorClassIdentifier:
debug: 0
--- !u!182 &2098574257
WindZone:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1275997076444014}
m_Enabled: 1
m_Mode: 0
m_Radius: 20
m_WindMain: 35
m_WindTurbulence: 0.3
m_WindPulseMagnitude: 0.5
m_WindPulseFrequency: 0.01
--- !u!1 &2147410364
GameObject:
m_ObjectHideFlags: 0

2
Assets/Scripts/LensFlare/HDRPLensFlare.cs


if (m_CustomDepthBuffer == null)
m_CustomDepthBuffer = GetComponent<CustomDepthBuffer>();
m_Light = GetComponent<Light>();
m_MeshFilter.hideFlags = HideFlags.None;
m_MeshRenderer.hideFlags = HideFlags.None;

45
Assets/ClusterDisplay/Scripts/DebugShadows.cs


using System;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
public class DebugShadows : MonoBehaviour
{
int m_NumDirectionalLights;
List<string> m_LightsInfo = new List<string>();
void OnGUI()
{
GUILayout.Label($"[{m_NumDirectionalLights}] directional lights detected");
foreach (var info in m_LightsInfo)
GUILayout.Label(info);
}
void Update()
{
m_NumDirectionalLights = 0;
m_LightsInfo.Clear();
foreach (var light in FindObjectsOfType<Light>())
{
if (light.type == LightType.Directional)
{
++m_NumDirectionalLights;
m_LightsInfo.Add(GetLightInfo(light));
}
}
}
static string GetLightInfo(Light light)
{
var sb = new StringBuilder();
sb.Append(light.name);
Transform trs = light.transform;
while (trs.parent != null)
{
trs = trs.parent;
sb.Append("/" + trs.name);
}
return sb.ToString();
}
}

11
Assets/ClusterDisplay/Scripts/DebugShadows.cs.meta


fileFormatVersion: 2
guid: 8edd9f94dd48718438a0dcc33a5d3d81
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

部分文件因为文件数量过多而无法显示

正在加载...
取消
保存