namespace UnityEngine.Rendering.HighDefinition { public partial class HDRenderPipelineAsset { #region Materials #if UNITY_EDITOR private HDRenderPipelineEditorMaterials defaultMaterials => GraphicsSettings.GetRenderPipelineSettings(); /// HDRP default material. public override Material defaultMaterial => defaultMaterials?.defaultMaterial; /// HDRP default Decal material. public Material GetDefaultDecalMaterial() => defaultMaterials?.defaultDecalMaterial; /// HDRP default mirror material. public Material GetDefaultMirrorMaterial() => defaultMaterials?.defaultMirrorMaterial; /// HDRP default particles material. public override Material defaultParticleMaterial => defaultMaterials?.defaultParticleMaterial; /// HDRP default terrain material. public override Material defaultTerrainMaterial => defaultMaterials?.defaultTerrainMaterial; #endif #endregion #region Shaders /// HDRP default shader. public override Shader defaultShader => GraphicsSettings.TryGetRenderPipelineSettings(out var shaders) ? shaders.defaultShader : null; #if UNITY_EDITOR private HDRenderPipelineEditorShaders defaultShaders => GraphicsSettings.GetRenderPipelineSettings(); #region Autodesk /// HDRP default autodesk interactive shader. public override Shader autodeskInteractiveShader => defaultShaders?.autodeskInteractiveShader; /// HDRP default autodesk interactive transparent shader. public override Shader autodeskInteractiveTransparentShader => defaultShaders?.autodeskInteractiveTransparentShader; /// HDRP default autodesk interactive masked shader. public override Shader autodeskInteractiveMaskedShader => defaultShaders?.autodeskInteractiveMaskedShader; #endregion #region SpeedTree /// HDRP default speed tree v8 shader public override Shader defaultSpeedTree8Shader => defaultShaders?.defaultSpeedTree8Shader; /// HDRP default speed tree v9 shader public override Shader defaultSpeedTree9Shader => defaultShaders?.defaultSpeedTree9Shader; #endregion #endif #endregion } }