etienne cella
5 年前
当前提交
ce540fb3
共有 11 个文件被更改,包括 847 次插入 和 1081 次删除
-
66Assets/ClusterDisplay/Scripts/CustomDepthBuffer.cs
-
8Assets/Scenes/Demo/Demo.unity
-
814Assets/Scenes/Demo/Demo_LI_Sunset.unity
-
701Assets/Scenes/Demo/Settings/HDRenderPipelineAsset Demo.asset
-
25Assets/Scripts/LensFlare/HDRPLensFlare.cs
-
9ProjectSettings/ProjectSettings.asset
-
93ProjectSettings/TagManager.asset
-
2ProjectSettings/UnityConnectSettings.asset
-
199Assets/ClusterDisplay/Scripts/OcclusionRenderer.cs
-
11Assets/ClusterDisplay/Scripts/OcclusionRenderer.cs.meta
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!114 &11400000 |
|||
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: 0cf1dab834d4ec34195b920ea7bbf9ec, type: 3} |
|||
m_Name: HDRenderPipelineAsset Demo |
|||
m_EditorClassIdentifier: |
|||
m_Version: 11 |
|||
m_ObsoleteFrameSettings: |
|||
overrides: 0 |
|||
enableShadow: 0 |
|||
enableContactShadows: 0 |
|||
enableShadowMask: 0 |
|||
enableSSR: 0 |
|||
enableSSAO: 0 |
|||
enableSubsurfaceScattering: 0 |
|||
enableTransmission: 0 |
|||
enableAtmosphericScattering: 0 |
|||
enableVolumetrics: 0 |
|||
enableReprojectionForVolumetrics: 0 |
|||
enableLightLayers: 0 |
|||
enableExposureControl: 1 |
|||
diffuseGlobalDimmer: 0 |
|||
specularGlobalDimmer: 0 |
|||
shaderLitMode: 0 |
|||
enableDepthPrepassWithDeferredRendering: 0 |
|||
enableTransparentPrepass: 0 |
|||
enableMotionVectors: 0 |
|||
enableObjectMotionVectors: 0 |
|||
enableDecals: 0 |
|||
enableRoughRefraction: 0 |
|||
enableTransparentPostpass: 0 |
|||
enableDistortion: 0 |
|||
enablePostprocess: 0 |
|||
enableOpaqueObjects: 0 |
|||
enableTransparentObjects: 0 |
|||
enableRealtimePlanarReflection: 0 |
|||
enableMSAA: 0 |
|||
enableAsyncCompute: 0 |
|||
runLightListAsync: 0 |
|||
runSSRAsync: 0 |
|||
runSSAOAsync: 0 |
|||
runContactShadowsAsync: 0 |
|||
runVolumeVoxelizationAsync: 0 |
|||
lightLoopSettings: |
|||
overrides: 0 |
|||
enableDeferredTileAndCluster: 0 |
|||
enableComputeLightEvaluation: 0 |
|||
enableComputeLightVariants: 0 |
|||
enableComputeMaterialVariants: 0 |
|||
enableFptlForForwardOpaque: 0 |
|||
enableBigTilePrepass: 0 |
|||
isFptlEnabled: 0 |
|||
m_ObsoleteBakedOrCustomReflectionFrameSettings: |
|||
overrides: 0 |
|||
enableShadow: 0 |
|||
enableContactShadows: 0 |
|||
enableShadowMask: 0 |
|||
enableSSR: 0 |
|||
enableSSAO: 0 |
|||
enableSubsurfaceScattering: 0 |
|||
enableTransmission: 0 |
|||
enableAtmosphericScattering: 0 |
|||
enableVolumetrics: 0 |
|||
enableReprojectionForVolumetrics: 0 |
|||
enableLightLayers: 0 |
|||
enableExposureControl: 1 |
|||
diffuseGlobalDimmer: 0 |
|||
specularGlobalDimmer: 0 |
|||
shaderLitMode: 0 |
|||
enableDepthPrepassWithDeferredRendering: 0 |
|||
enableTransparentPrepass: 0 |
|||
enableMotionVectors: 0 |
|||
enableObjectMotionVectors: 0 |
|||
enableDecals: 0 |
|||
enableRoughRefraction: 0 |
|||
enableTransparentPostpass: 0 |
|||
enableDistortion: 0 |
|||
enablePostprocess: 0 |
|||
enableOpaqueObjects: 0 |
|||
enableTransparentObjects: 0 |
|||
enableRealtimePlanarReflection: 0 |
|||
enableMSAA: 0 |
|||
enableAsyncCompute: 0 |
|||
runLightListAsync: 0 |
|||
runSSRAsync: 0 |
|||
runSSAOAsync: 0 |
|||
runContactShadowsAsync: 0 |
|||
runVolumeVoxelizationAsync: 0 |
|||
lightLoopSettings: |
|||
overrides: 0 |
|||
enableDeferredTileAndCluster: 0 |
|||
enableComputeLightEvaluation: 0 |
|||
enableComputeLightVariants: 0 |
|||
enableComputeMaterialVariants: 0 |
|||
enableFptlForForwardOpaque: 0 |
|||
enableBigTilePrepass: 0 |
|||
isFptlEnabled: 0 |
|||
m_ObsoleteRealtimeReflectionFrameSettings: |
|||
overrides: 0 |
|||
enableShadow: 0 |
|||
enableContactShadows: 0 |
|||
enableShadowMask: 0 |
|||
enableSSR: 0 |
|||
enableSSAO: 0 |
|||
enableSubsurfaceScattering: 0 |
|||
enableTransmission: 0 |
|||
enableAtmosphericScattering: 0 |
|||
enableVolumetrics: 0 |
|||
enableReprojectionForVolumetrics: 0 |
|||
enableLightLayers: 0 |
|||
enableExposureControl: 1 |
|||
diffuseGlobalDimmer: 0 |
|||
specularGlobalDimmer: 0 |
|||
shaderLitMode: 0 |
|||
enableDepthPrepassWithDeferredRendering: 0 |
|||
enableTransparentPrepass: 0 |
|||
enableMotionVectors: 0 |
|||
enableObjectMotionVectors: 0 |
|||
enableDecals: 0 |
|||
enableRoughRefraction: 0 |
|||
enableTransparentPostpass: 0 |
|||
enableDistortion: 0 |
|||
enablePostprocess: 0 |
|||
enableOpaqueObjects: 0 |
|||
enableTransparentObjects: 0 |
|||
enableRealtimePlanarReflection: 0 |
|||
enableMSAA: 0 |
|||
enableAsyncCompute: 0 |
|||
runLightListAsync: 0 |
|||
runSSRAsync: 0 |
|||
runSSAOAsync: 0 |
|||
runContactShadowsAsync: 0 |
|||
runVolumeVoxelizationAsync: 0 |
|||
lightLoopSettings: |
|||
overrides: 0 |
|||
enableDeferredTileAndCluster: 0 |
|||
enableComputeLightEvaluation: 0 |
|||
enableComputeLightVariants: 0 |
|||
enableComputeMaterialVariants: 0 |
|||
enableFptlForForwardOpaque: 0 |
|||
enableBigTilePrepass: 0 |
|||
isFptlEnabled: 0 |
|||
m_RenderPipelineResources: {fileID: 11400000, guid: 3ce144cff5783da45aa5d4fdc2da14b7, |
|||
type: 2} |
|||
m_RenderPipelineRayTracingResources: {fileID: 0} |
|||
m_DefaultVolumeProfile: {fileID: 11400000, guid: e974ed4225c49d4418df0209aeb12608, |
|||
type: 2} |
|||
m_RenderingPathDefaultCameraFrameSettings: |
|||
bitDatas: |
|||
data1: 70280693153631 |
|||
data2: 4539628424926265344 |
|||
lodBias: 1 |
|||
lodBiasMode: 0 |
|||
lodBiasQualityLevel: 0 |
|||
maximumLODLevel: 0 |
|||
maximumLODLevelMode: 0 |
|||
maximumLODLevelQualityLevel: 0 |
|||
materialQuality: 0 |
|||
m_RenderingPathDefaultBakedOrCustomReflectionFrameSettings: |
|||
bitDatas: |
|||
data1: 69340088336157 |
|||
data2: 4539628424389459968 |
|||
lodBias: 1 |
|||
lodBiasMode: 0 |
|||
lodBiasQualityLevel: 0 |
|||
maximumLODLevel: 0 |
|||
maximumLODLevelMode: 0 |
|||
maximumLODLevelQualityLevel: 0 |
|||
materialQuality: 0 |
|||
m_RenderingPathDefaultRealtimeReflectionFrameSettings: |
|||
bitDatas: |
|||
data1: 69751545004037 |
|||
data2: 4539628424389459968 |
|||
lodBias: 2 |
|||
lodBiasMode: 1 |
|||
lodBiasQualityLevel: 0 |
|||
maximumLODLevel: 1 |
|||
maximumLODLevelMode: 2 |
|||
maximumLODLevelQualityLevel: 0 |
|||
materialQuality: 0 |
|||
m_RenderPipelineSettings: |
|||
supportShadowMask: 0 |
|||
supportSSR: 1 |
|||
supportSSAO: 1 |
|||
supportSubsurfaceScattering: 1 |
|||
increaseSssSampleCount: 0 |
|||
supportVolumetrics: 1 |
|||
increaseResolutionOfVolumetrics: 0 |
|||
supportLightLayers: 0 |
|||
lightLayerName0: Light Layer default |
|||
lightLayerName1: Light Layer 1 |
|||
lightLayerName2: Light Layer 2 |
|||
lightLayerName3: Light Layer 3 |
|||
lightLayerName4: Light Layer 4 |
|||
lightLayerName5: Light Layer 5 |
|||
lightLayerName6: Light Layer 6 |
|||
lightLayerName7: Light Layer 7 |
|||
supportDistortion: 1 |
|||
supportTransparentBackface: 1 |
|||
supportTransparentDepthPrepass: 1 |
|||
supportTransparentDepthPostpass: 1 |
|||
colorBufferFormat: 74 |
|||
supportCustomPass: 1 |
|||
customBufferFormat: 12 |
|||
supportedLitShaderMode: 2 |
|||
supportDecals: 1 |
|||
msaaSampleCount: 1 |
|||
supportMotionVectors: 1 |
|||
supportRuntimeDebugDisplay: 1 |
|||
supportDitheringCrossFade: 1 |
|||
supportTerrainHole: 0 |
|||
supportRayTracing: 0 |
|||
supportedRaytracingTier: 2 |
|||
lightLoopSettings: |
|||
cookieSize: 128 |
|||
cookieTexArraySize: 8 |
|||
pointCookieSize: 512 |
|||
cubeCookieTexArraySize: 8 |
|||
planarReflectionProbeCacheSize: 1 |
|||
planarReflectionTextureSize: 1024 |
|||
reflectionProbeCacheSize: 32 |
|||
reflectionCubemapSize: 128 |
|||
reflectionCacheCompressed: 0 |
|||
planarReflectionCacheCompressed: 0 |
|||
skyReflectionSize: 256 |
|||
skyLightingOverrideLayerMask: |
|||
serializedVersion: 2 |
|||
m_Bits: 0 |
|||
supportFabricConvolution: 0 |
|||
maxDirectionalLightsOnScreen: 16 |
|||
maxPunctualLightsOnScreen: 512 |
|||
maxAreaLightsOnScreen: 64 |
|||
maxEnvLightsOnScreen: 64 |
|||
maxDecalsOnScreen: 512 |
|||
hdShadowInitParams: |
|||
maxShadowRequests: 128 |
|||
directionalShadowsDepthBits: 16 |
|||
shadowFilteringQuality: 1 |
|||
punctualLightShadowAtlas: |
|||
shadowAtlasResolution: 2048 |
|||
shadowAtlasDepthBits: 16 |
|||
useDynamicViewportRescale: 1 |
|||
areaLightShadowAtlas: |
|||
shadowAtlasResolution: 256 |
|||
shadowAtlasDepthBits: 16 |
|||
useDynamicViewportRescale: 0 |
|||
shadowResolutionDirectional: |
|||
m_Values: 00010000000200000004000000000000 |
|||
m_SchemaId: |
|||
m_Id: With4Levels |
|||
shadowResolutionPunctual: |
|||
m_Values: 00010000000200000004000000000000 |
|||
m_SchemaId: |
|||
m_Id: With4Levels |
|||
shadowResolutionArea: |
|||
m_Values: 00010000000200000004000000000000 |
|||
m_SchemaId: |
|||
m_Id: With4Levels |
|||
maxDirectionalShadowMapResolution: 2048 |
|||
maxPunctualShadowMapResolution: 2048 |
|||
maxAreaShadowMapResolution: 2048 |
|||
supportScreenSpaceShadows: 0 |
|||
maxScreenSpaceShadows: 2 |
|||
decalSettings: |
|||
drawDistance: 50 |
|||
atlasWidth: 1024 |
|||
atlasHeight: 1024 |
|||
perChannelMask: 0 |
|||
postProcessSettings: |
|||
m_LutSize: 32 |
|||
lutFormat: 48 |
|||
dynamicResolutionSettings: |
|||
enabled: 0 |
|||
maxPercentage: 100 |
|||
minPercentage: 100 |
|||
dynResType: 1 |
|||
upsampleFilter: 1 |
|||
forceResolution: 0 |
|||
forcedPercentage: 100 |
|||
lowresTransparentSettings: |
|||
enabled: 1 |
|||
checkerboardDepthBuffer: 1 |
|||
upsampleType: 1 |
|||
xrSettings: |
|||
singlePass: 1 |
|||
occlusionMesh: 1 |
|||
postProcessQualitySettings: |
|||
NearBlurSampleCount: 030000000500000008000000 |
|||
NearBlurMaxRadius: |
|||
- 2 |
|||
- 4 |
|||
- 7 |
|||
FarBlurSampleCount: 04000000070000000e000000 |
|||
FarBlurMaxRadius: |
|||
- 5 |
|||
- 8 |
|||
- 13 |
|||
DoFResolution: 040000000200000001000000 |
|||
DoFHighQualityFiltering: 000101 |
|||
MotionBlurSampleCount: 04000000080000000c000000 |
|||
BloomRes: 040000000200000002000000 |
|||
BloomHighQualityFiltering: 000101 |
|||
ChromaticAberrationMaxSamples: 03000000060000000c000000 |
|||
lightSettings: |
|||
useContactShadow: |
|||
m_Values: 000101 |
|||
m_SchemaId: |
|||
m_Id: |
|||
maximumLODLevel: |
|||
m_Values: 000000000000000000000000 |
|||
m_SchemaId: |
|||
m_Id: With3Levels |
|||
lodBias: |
|||
m_Values: |
|||
- 1 |
|||
- 1 |
|||
- 1 |
|||
m_SchemaId: |
|||
m_Id: With3Levels |
|||
allowShaderVariantStripping: 1 |
|||
enableSRPBatcher: 1 |
|||
shaderVariantLogLevel: 0 |
|||
materialQualityLevels: -1 |
|||
m_CurrentMaterialQualityLevel: 4 |
|||
diffusionProfileSettings: {fileID: 11400000, guid: b1a9e0252669a7c43bd995f46eaf6a73, |
|||
type: 2} |
|||
diffusionProfileSettingsList: |
|||
- {fileID: 11400000, guid: b1a9e0252669a7c43bd995f46eaf6a73, type: 2} |
|||
- {fileID: 11400000, guid: 2cdaea5655e62494786464bb3f8d2eee, type: 2} |
|||
- {fileID: 11400000, guid: d65a6798fe78b2a4ea3b769c46af8950, type: 2} |
|||
- {fileID: 11400000, guid: 5f8622d7971d8e14aaa1f77f53000c15, type: 2} |
|||
- {fileID: 11400000, guid: d3de1402c3552004b926d55990bc6b0b, type: 2} |
|||
- {fileID: 11400000, guid: f96074d7f33516f4ba7b5876f3405e23, type: 2} |
|||
- {fileID: 11400000, guid: 0f36972dc183b6242a7a29206858f51c, type: 2} |
|||
- {fileID: 11400000, guid: 69de589e7a4a32c4b9f0cb2b25c09d2a, type: 2} |
|||
beforeTransparentCustomPostProcesses: [] |
|||
beforePostProcessCustomPostProcesses: [] |
|||
afterPostProcessCustomPostProcesses: [] |
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!114 &11400000 |
|||
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: 0cf1dab834d4ec34195b920ea7bbf9ec, type: 3} |
|||
m_Name: HDRenderPipelineAsset Demo |
|||
m_EditorClassIdentifier: |
|||
m_Version: 11 |
|||
m_ObsoleteFrameSettings: |
|||
overrides: 0 |
|||
enableShadow: 0 |
|||
enableContactShadows: 0 |
|||
enableShadowMask: 0 |
|||
enableSSR: 0 |
|||
enableSSAO: 0 |
|||
enableSubsurfaceScattering: 0 |
|||
enableTransmission: 0 |
|||
enableAtmosphericScattering: 0 |
|||
enableVolumetrics: 0 |
|||
enableReprojectionForVolumetrics: 0 |
|||
enableLightLayers: 0 |
|||
enableExposureControl: 1 |
|||
diffuseGlobalDimmer: 0 |
|||
specularGlobalDimmer: 0 |
|||
shaderLitMode: 0 |
|||
enableDepthPrepassWithDeferredRendering: 0 |
|||
enableTransparentPrepass: 0 |
|||
enableMotionVectors: 0 |
|||
enableObjectMotionVectors: 0 |
|||
enableDecals: 0 |
|||
enableRoughRefraction: 0 |
|||
enableTransparentPostpass: 0 |
|||
enableDistortion: 0 |
|||
enablePostprocess: 0 |
|||
enableOpaqueObjects: 0 |
|||
enableTransparentObjects: 0 |
|||
enableRealtimePlanarReflection: 0 |
|||
enableMSAA: 0 |
|||
enableAsyncCompute: 0 |
|||
runLightListAsync: 0 |
|||
runSSRAsync: 0 |
|||
runSSAOAsync: 0 |
|||
runContactShadowsAsync: 0 |
|||
runVolumeVoxelizationAsync: 0 |
|||
lightLoopSettings: |
|||
overrides: 0 |
|||
enableDeferredTileAndCluster: 0 |
|||
enableComputeLightEvaluation: 0 |
|||
enableComputeLightVariants: 0 |
|||
enableComputeMaterialVariants: 0 |
|||
enableFptlForForwardOpaque: 0 |
|||
enableBigTilePrepass: 0 |
|||
isFptlEnabled: 0 |
|||
m_ObsoleteBakedOrCustomReflectionFrameSettings: |
|||
overrides: 0 |
|||
enableShadow: 0 |
|||
enableContactShadows: 0 |
|||
enableShadowMask: 0 |
|||
enableSSR: 0 |
|||
enableSSAO: 0 |
|||
enableSubsurfaceScattering: 0 |
|||
enableTransmission: 0 |
|||
enableAtmosphericScattering: 0 |
|||
enableVolumetrics: 0 |
|||
enableReprojectionForVolumetrics: 0 |
|||
enableLightLayers: 0 |
|||
enableExposureControl: 1 |
|||
diffuseGlobalDimmer: 0 |
|||
specularGlobalDimmer: 0 |
|||
shaderLitMode: 0 |
|||
enableDepthPrepassWithDeferredRendering: 0 |
|||
enableTransparentPrepass: 0 |
|||
enableMotionVectors: 0 |
|||
enableObjectMotionVectors: 0 |
|||
enableDecals: 0 |
|||
enableRoughRefraction: 0 |
|||
enableTransparentPostpass: 0 |
|||
enableDistortion: 0 |
|||
enablePostprocess: 0 |
|||
enableOpaqueObjects: 0 |
|||
enableTransparentObjects: 0 |
|||
enableRealtimePlanarReflection: 0 |
|||
enableMSAA: 0 |
|||
enableAsyncCompute: 0 |
|||
runLightListAsync: 0 |
|||
runSSRAsync: 0 |
|||
runSSAOAsync: 0 |
|||
runContactShadowsAsync: 0 |
|||
runVolumeVoxelizationAsync: 0 |
|||
lightLoopSettings: |
|||
overrides: 0 |
|||
enableDeferredTileAndCluster: 0 |
|||
enableComputeLightEvaluation: 0 |
|||
enableComputeLightVariants: 0 |
|||
enableComputeMaterialVariants: 0 |
|||
enableFptlForForwardOpaque: 0 |
|||
enableBigTilePrepass: 0 |
|||
isFptlEnabled: 0 |
|||
m_ObsoleteRealtimeReflectionFrameSettings: |
|||
overrides: 0 |
|||
enableShadow: 0 |
|||
enableContactShadows: 0 |
|||
enableShadowMask: 0 |
|||
enableSSR: 0 |
|||
enableSSAO: 0 |
|||
enableSubsurfaceScattering: 0 |
|||
enableTransmission: 0 |
|||
enableAtmosphericScattering: 0 |
|||
enableVolumetrics: 0 |
|||
enableReprojectionForVolumetrics: 0 |
|||
enableLightLayers: 0 |
|||
enableExposureControl: 1 |
|||
diffuseGlobalDimmer: 0 |
|||
specularGlobalDimmer: 0 |
|||
shaderLitMode: 0 |
|||
enableDepthPrepassWithDeferredRendering: 0 |
|||
enableTransparentPrepass: 0 |
|||
enableMotionVectors: 0 |
|||
enableObjectMotionVectors: 0 |
|||
enableDecals: 0 |
|||
enableRoughRefraction: 0 |
|||
enableTransparentPostpass: 0 |
|||
enableDistortion: 0 |
|||
enablePostprocess: 0 |
|||
enableOpaqueObjects: 0 |
|||
enableTransparentObjects: 0 |
|||
enableRealtimePlanarReflection: 0 |
|||
enableMSAA: 0 |
|||
enableAsyncCompute: 0 |
|||
runLightListAsync: 0 |
|||
runSSRAsync: 0 |
|||
runSSAOAsync: 0 |
|||
runContactShadowsAsync: 0 |
|||
runVolumeVoxelizationAsync: 0 |
|||
lightLoopSettings: |
|||
overrides: 0 |
|||
enableDeferredTileAndCluster: 0 |
|||
enableComputeLightEvaluation: 0 |
|||
enableComputeLightVariants: 0 |
|||
enableComputeMaterialVariants: 0 |
|||
enableFptlForForwardOpaque: 0 |
|||
enableBigTilePrepass: 0 |
|||
isFptlEnabled: 0 |
|||
m_RenderPipelineResources: {fileID: 11400000, guid: 3ce144cff5783da45aa5d4fdc2da14b7, |
|||
type: 2} |
|||
m_RenderPipelineRayTracingResources: {fileID: 0} |
|||
m_DefaultVolumeProfile: {fileID: 11400000, guid: e974ed4225c49d4418df0209aeb12608, |
|||
type: 2} |
|||
m_DefaultLookDevProfile: {fileID: 0} |
|||
m_RenderingPathDefaultCameraFrameSettings: |
|||
bitDatas: |
|||
data1: 70280693153631 |
|||
data2: 4539628425463136256 |
|||
lodBias: 1 |
|||
lodBiasMode: 0 |
|||
lodBiasQualityLevel: 0 |
|||
maximumLODLevel: 0 |
|||
maximumLODLevelMode: 0 |
|||
maximumLODLevelQualityLevel: 0 |
|||
materialQuality: 0 |
|||
m_RenderingPathDefaultBakedOrCustomReflectionFrameSettings: |
|||
bitDatas: |
|||
data1: 69340088336157 |
|||
data2: 4539628424389459968 |
|||
lodBias: 1 |
|||
lodBiasMode: 0 |
|||
lodBiasQualityLevel: 0 |
|||
maximumLODLevel: 0 |
|||
maximumLODLevelMode: 0 |
|||
maximumLODLevelQualityLevel: 0 |
|||
materialQuality: 0 |
|||
m_RenderingPathDefaultRealtimeReflectionFrameSettings: |
|||
bitDatas: |
|||
data1: 69751545004037 |
|||
data2: 4539628424389459968 |
|||
lodBias: 2 |
|||
lodBiasMode: 1 |
|||
lodBiasQualityLevel: 0 |
|||
maximumLODLevel: 1 |
|||
maximumLODLevelMode: 2 |
|||
maximumLODLevelQualityLevel: 0 |
|||
materialQuality: 0 |
|||
m_RenderPipelineSettings: |
|||
supportShadowMask: 0 |
|||
supportSSR: 1 |
|||
supportSSAO: 1 |
|||
supportSubsurfaceScattering: 1 |
|||
increaseSssSampleCount: 0 |
|||
supportVolumetrics: 1 |
|||
increaseResolutionOfVolumetrics: 0 |
|||
supportLightLayers: 0 |
|||
lightLayerName0: Light Layer default |
|||
lightLayerName1: Light Layer 1 |
|||
lightLayerName2: Light Layer 2 |
|||
lightLayerName3: Light Layer 3 |
|||
lightLayerName4: Light Layer 4 |
|||
lightLayerName5: Light Layer 5 |
|||
lightLayerName6: Light Layer 6 |
|||
lightLayerName7: Light Layer 7 |
|||
supportDistortion: 1 |
|||
supportTransparentBackface: 1 |
|||
supportTransparentDepthPrepass: 1 |
|||
supportTransparentDepthPostpass: 1 |
|||
colorBufferFormat: 74 |
|||
supportCustomPass: 1 |
|||
customBufferFormat: 12 |
|||
supportedLitShaderMode: 2 |
|||
supportDecals: 1 |
|||
msaaSampleCount: 1 |
|||
supportMotionVectors: 1 |
|||
supportRuntimeDebugDisplay: 1 |
|||
supportDitheringCrossFade: 1 |
|||
supportTerrainHole: 0 |
|||
supportRayTracing: 0 |
|||
supportedRaytracingTier: 2 |
|||
lightLoopSettings: |
|||
cookieSize: 128 |
|||
cookieTexArraySize: 8 |
|||
pointCookieSize: 512 |
|||
cubeCookieTexArraySize: 8 |
|||
planarReflectionProbeCacheSize: 1 |
|||
planarReflectionTextureSize: 1024 |
|||
reflectionProbeCacheSize: 32 |
|||
reflectionCubemapSize: 128 |
|||
reflectionCacheCompressed: 0 |
|||
planarReflectionCacheCompressed: 0 |
|||
skyReflectionSize: 256 |
|||
skyLightingOverrideLayerMask: |
|||
serializedVersion: 2 |
|||
m_Bits: 0 |
|||
supportFabricConvolution: 0 |
|||
maxDirectionalLightsOnScreen: 16 |
|||
maxPunctualLightsOnScreen: 512 |
|||
maxAreaLightsOnScreen: 64 |
|||
maxEnvLightsOnScreen: 64 |
|||
maxDecalsOnScreen: 512 |
|||
hdShadowInitParams: |
|||
maxShadowRequests: 128 |
|||
directionalShadowsDepthBits: 16 |
|||
shadowFilteringQuality: 1 |
|||
punctualLightShadowAtlas: |
|||
shadowAtlasResolution: 2048 |
|||
shadowAtlasDepthBits: 16 |
|||
useDynamicViewportRescale: 1 |
|||
areaLightShadowAtlas: |
|||
shadowAtlasResolution: 256 |
|||
shadowAtlasDepthBits: 16 |
|||
useDynamicViewportRescale: 0 |
|||
shadowResolutionDirectional: |
|||
m_Values: 00010000000200000004000000000000 |
|||
m_SchemaId: |
|||
m_Id: With4Levels |
|||
shadowResolutionPunctual: |
|||
m_Values: 00010000000200000004000000000000 |
|||
m_SchemaId: |
|||
m_Id: With4Levels |
|||
shadowResolutionArea: |
|||
m_Values: 00010000000200000004000000000000 |
|||
m_SchemaId: |
|||
m_Id: With4Levels |
|||
maxDirectionalShadowMapResolution: 2048 |
|||
maxPunctualShadowMapResolution: 2048 |
|||
maxAreaShadowMapResolution: 2048 |
|||
supportScreenSpaceShadows: 0 |
|||
maxScreenSpaceShadows: 2 |
|||
decalSettings: |
|||
drawDistance: 50 |
|||
atlasWidth: 1024 |
|||
atlasHeight: 1024 |
|||
perChannelMask: 0 |
|||
postProcessSettings: |
|||
m_LutSize: 32 |
|||
lutFormat: 48 |
|||
dynamicResolutionSettings: |
|||
enabled: 0 |
|||
maxPercentage: 100 |
|||
minPercentage: 100 |
|||
dynResType: 1 |
|||
upsampleFilter: 1 |
|||
forceResolution: 0 |
|||
forcedPercentage: 100 |
|||
lowresTransparentSettings: |
|||
enabled: 1 |
|||
checkerboardDepthBuffer: 1 |
|||
upsampleType: 1 |
|||
xrSettings: |
|||
singlePass: 1 |
|||
occlusionMesh: 1 |
|||
postProcessQualitySettings: |
|||
NearBlurSampleCount: 030000000500000008000000 |
|||
NearBlurMaxRadius: |
|||
- 2 |
|||
- 4 |
|||
- 7 |
|||
FarBlurSampleCount: 04000000070000000e000000 |
|||
FarBlurMaxRadius: |
|||
- 5 |
|||
- 8 |
|||
- 13 |
|||
DoFResolution: 040000000200000001000000 |
|||
DoFHighQualityFiltering: 000101 |
|||
MotionBlurSampleCount: 04000000080000000c000000 |
|||
BloomRes: 040000000200000002000000 |
|||
BloomHighQualityFiltering: 000101 |
|||
ChromaticAberrationMaxSamples: 03000000060000000c000000 |
|||
lightSettings: |
|||
useContactShadow: |
|||
m_Values: 000101 |
|||
m_SchemaId: |
|||
m_Id: |
|||
maximumLODLevel: |
|||
m_Values: 000000000000000000000000 |
|||
m_SchemaId: |
|||
m_Id: With3Levels |
|||
lodBias: |
|||
m_Values: |
|||
- 1 |
|||
- 1 |
|||
- 1 |
|||
m_SchemaId: |
|||
m_Id: With3Levels |
|||
lightingQualitySettings: |
|||
AOStepCount: 040000000600000010000000 |
|||
AOFullRes: 000001 |
|||
AOMaximumRadiusPixels: 200000002800000050000000 |
|||
AOBilateralUpsample: 000101 |
|||
AODirectionCount: 010000000200000004000000 |
|||
ContactShadowSampleCount: 060000000a00000010000000 |
|||
SSRMaxRaySteps: 100000002000000040000000 |
|||
allowShaderVariantStripping: 1 |
|||
enableSRPBatcher: 1 |
|||
shaderVariantLogLevel: 0 |
|||
availableMaterialQualityLevels: -1 |
|||
m_DefaultMaterialQualityLevel: 4 |
|||
diffusionProfileSettings: {fileID: 11400000, guid: b1a9e0252669a7c43bd995f46eaf6a73, |
|||
type: 2} |
|||
diffusionProfileSettingsList: |
|||
- {fileID: 11400000, guid: b1a9e0252669a7c43bd995f46eaf6a73, type: 2} |
|||
- {fileID: 11400000, guid: 2cdaea5655e62494786464bb3f8d2eee, type: 2} |
|||
- {fileID: 11400000, guid: d65a6798fe78b2a4ea3b769c46af8950, type: 2} |
|||
- {fileID: 11400000, guid: 5f8622d7971d8e14aaa1f77f53000c15, type: 2} |
|||
- {fileID: 11400000, guid: d3de1402c3552004b926d55990bc6b0b, type: 2} |
|||
- {fileID: 11400000, guid: f96074d7f33516f4ba7b5876f3405e23, type: 2} |
|||
- {fileID: 11400000, guid: 0f36972dc183b6242a7a29206858f51c, type: 2} |
|||
- {fileID: 11400000, guid: 69de589e7a4a32c4b9f0cb2b25c09d2a, type: 2} |
|||
beforeTransparentCustomPostProcesses: [] |
|||
beforePostProcessCustomPostProcesses: [] |
|||
afterPostProcessCustomPostProcesses: [] |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!78 &1 |
|||
TagManager: |
|||
serializedVersion: 2 |
|||
tags: |
|||
- IgnoreVR |
|||
- MainExposure |
|||
- Sunlight |
|||
layers: |
|||
- Default |
|||
- TransparentFX |
|||
- Ignore Raycast |
|||
- |
|||
- Water |
|||
- UI |
|||
- |
|||
- |
|||
- InvisibleInGame |
|||
- Ground |
|||
- PostProcessing |
|||
- PlayerCollisions |
|||
- PlayerAttachments |
|||
- NoReflection |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
m_SortingLayers: |
|||
- name: Default |
|||
uniqueID: 0 |
|||
locked: 0 |
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!78 &1 |
|||
TagManager: |
|||
serializedVersion: 2 |
|||
tags: |
|||
- IgnoreVR |
|||
- MainExposure |
|||
- Sunlight |
|||
- OccludeLensFlare |
|||
layers: |
|||
- Default |
|||
- TransparentFX |
|||
- Ignore Raycast |
|||
- |
|||
- Water |
|||
- UI |
|||
- |
|||
- |
|||
- InvisibleInGame |
|||
- Ground |
|||
- PostProcessing |
|||
- PlayerCollisions |
|||
- PlayerAttachments |
|||
- NoReflection |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
- |
|||
m_SortingLayers: |
|||
- name: Default |
|||
uniqueID: 0 |
|||
locked: 0 |
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Security.AccessControl; |
|||
using System.Text.RegularExpressions; |
|||
using UnityEngine; |
|||
using UnityEngine.Rendering; |
|||
|
|||
[ExecuteInEditMode] |
|||
public class OcclusionRenderer : MonoBehaviour |
|||
{ |
|||
[SerializeField] |
|||
Transform[] m_OccludingRoots; |
|||
|
|||
[SerializeField] |
|||
Mesh[] m_OccludingMeshes; |
|||
|
|||
[SerializeField] |
|||
Vector2Int m_RenderTargetSize; |
|||
|
|||
Material m_Material; |
|||
|
|||
[SerializeField] |
|||
bool m_ShowDebugUI; |
|||
|
|||
RenderTexture m_ColorBuffer; |
|||
RenderTexture m_DepthBuffer; |
|||
CommandBuffer m_CmdBuffer; |
|||
|
|||
struct InstancedDrawArgs |
|||
{ |
|||
public Mesh mesh; |
|||
public List<Matrix4x4> transforms; // TODO use arrays if we use CommandBuffer
|
|||
} |
|||
|
|||
List<InstancedDrawArgs> m_RenderingData = new List<InstancedDrawArgs>(); |
|||
|
|||
class InstancingDataGenerationVisitor |
|||
{ |
|||
Dictionary<int, Mesh> m_Meshes = new Dictionary<int, Mesh>(); |
|||
Dictionary<int, List<Matrix4x4>> m_Transforms = new Dictionary<int, List<Matrix4x4>>(); |
|||
HashSet<int> m_Filter = new HashSet<int>(); |
|||
|
|||
public void Reset() |
|||
{ |
|||
m_Meshes.Clear(); |
|||
m_Transforms.Clear(); |
|||
} |
|||
|
|||
public void SetAllowedMeshes(Mesh[] meshes) |
|||
{ |
|||
m_Filter.Clear(); |
|||
foreach (var mesh in meshes) |
|||
m_Filter.Add(mesh.GetInstanceID()); |
|||
} |
|||
|
|||
public void Visit(Transform trs) |
|||
{ |
|||
var filter = trs.GetComponent<MeshFilter>(); |
|||
if (filter == null) |
|||
return; |
|||
|
|||
var mesh = filter.sharedMesh; |
|||
if (mesh == null) |
|||
return; |
|||
|
|||
AppendIfAllowed(mesh, trs.localToWorldMatrix); |
|||
} |
|||
|
|||
public void PopulateRenderingData(List<InstancedDrawArgs> renderingData) |
|||
{ |
|||
renderingData.Clear(); |
|||
|
|||
foreach (var entry in m_Meshes) |
|||
{ |
|||
renderingData.Add(new InstancedDrawArgs |
|||
{ |
|||
mesh = entry.Value, |
|||
transforms = m_Transforms[entry.Key] |
|||
}); |
|||
} |
|||
} |
|||
|
|||
void AppendIfAllowed(Mesh mesh, Matrix4x4 transform) |
|||
{ |
|||
var meshId = mesh.GetInstanceID(); |
|||
|
|||
if (!m_Filter.Contains(meshId)) |
|||
return; |
|||
|
|||
if (m_Meshes.ContainsKey(meshId)) |
|||
{ |
|||
m_Transforms[meshId].Add(transform); |
|||
} |
|||
else |
|||
{ |
|||
m_Meshes.Add(meshId, mesh); |
|||
var list = new List<Matrix4x4>(); |
|||
list.Add(transform); |
|||
m_Transforms.Add(meshId, list); |
|||
} |
|||
} |
|||
} |
|||
|
|||
InstancingDataGenerationVisitor m_InstancingDataGenerationVisitor = new InstancingDataGenerationVisitor(); |
|||
|
|||
void OnEnable() |
|||
{ |
|||
var shader = Shader.Find("HDRP/Lit"); |
|||
m_Material = new Material(shader); |
|||
m_Material.enableInstancing = true; |
|||
m_CmdBuffer = new CommandBuffer(); |
|||
} |
|||
|
|||
void OnDisable() |
|||
{ |
|||
DestroyImmediate(m_Material); |
|||
m_CmdBuffer.Release(); |
|||
if (m_DepthBuffer != null) |
|||
m_DepthBuffer.Release(); |
|||
m_DepthBuffer = null; |
|||
if (m_ColorBuffer != null) |
|||
m_ColorBuffer.Release(); |
|||
m_ColorBuffer = null; |
|||
} |
|||
|
|||
void Update() |
|||
{ |
|||
if (m_Material == null) |
|||
return; |
|||
|
|||
var camera = Camera.main; |
|||
if (camera != null && camera.cameraType == CameraType.Game) |
|||
Render(camera); |
|||
} |
|||
|
|||
void OnGUI() |
|||
{ |
|||
if (m_ShowDebugUI && m_DepthBuffer != null) |
|||
GUI.DrawTexture(new Rect(0, 0, m_DepthBuffer.width, m_DepthBuffer.height), m_DepthBuffer); |
|||
} |
|||
|
|||
// TODO optim only render if camera moved
|
|||
void Render(Camera camera) |
|||
{ |
|||
if (m_DepthBuffer == null || m_DepthBuffer.width != m_RenderTargetSize.x || m_DepthBuffer.height != m_RenderTargetSize.y) |
|||
{ |
|||
if (m_DepthBuffer != null) |
|||
m_DepthBuffer.Release(); |
|||
if (m_ColorBuffer != null) |
|||
m_ColorBuffer.Release(); |
|||
|
|||
m_DepthBuffer = new RenderTexture(m_RenderTargetSize.x, m_RenderTargetSize.y, 0, RenderTextureFormat.Depth); |
|||
m_ColorBuffer = new RenderTexture(m_RenderTargetSize.x, m_RenderTargetSize.y, 0, RenderTextureFormat.Default); |
|||
} |
|||
|
|||
m_CmdBuffer.Clear(); |
|||
m_CmdBuffer.SetRenderTarget(m_ColorBuffer.colorBuffer, m_DepthBuffer.colorBuffer); |
|||
m_CmdBuffer.SetViewProjectionMatrices(camera.worldToCameraMatrix, camera.projectionMatrix); |
|||
m_CmdBuffer.ClearRenderTarget(true, true, Color.black); |
|||
|
|||
foreach (var args in m_RenderingData) |
|||
m_CmdBuffer.DrawMeshInstanced(args.mesh, 0, m_Material, 0, args.transforms.ToArray()); |
|||
|
|||
Graphics.ExecuteCommandBuffer(m_CmdBuffer); |
|||
} |
|||
|
|||
[ContextMenu("Update Rendering Data")] |
|||
void UpdateRenderingData() |
|||
{ |
|||
if (m_OccludingRoots == null) |
|||
return; |
|||
|
|||
m_InstancingDataGenerationVisitor.Reset(); |
|||
m_InstancingDataGenerationVisitor.SetAllowedMeshes(m_OccludingMeshes); |
|||
|
|||
foreach (var occluder in m_OccludingRoots) |
|||
{ |
|||
UpdateRenderingDataRecursive(occluder.transform, m_InstancingDataGenerationVisitor); |
|||
} |
|||
|
|||
m_InstancingDataGenerationVisitor.PopulateRenderingData(m_RenderingData); |
|||
|
|||
// TMP DEBUG
|
|||
Debug.Log("INSTANCING RENDERING DATA:"); |
|||
foreach (var data in m_RenderingData) |
|||
{ |
|||
Debug.Log($"Mesh name[{data.mesh.name}] id[{data.mesh.GetInstanceID()}] count[{data.transforms.Count}]"); |
|||
} |
|||
} |
|||
|
|||
static void UpdateRenderingDataRecursive(Transform parent, InstancingDataGenerationVisitor visitor) |
|||
{ |
|||
foreach (Transform child in parent) |
|||
{ |
|||
visitor.Visit(child); |
|||
UpdateRenderingDataRecursive(child, visitor); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: de54ba8a91b3029408a045b153fa25fd |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
部分文件因为文件数量过多而无法显示
撰写
预览
正在加载...
取消
保存
Reference in new issue