public SerializedRenderPipelineSettings(SerializedProperty root) { this.root = root; supportShadowMask = root.Find((RenderPipelineSettings s) => s.supportShadowMask); supportSSR = root.Find((RenderPipelineSettings s) => s.supportSSR); supportSSAO = root.Find((RenderPipelineSettings s) => s.supportSSAO); supportSubsurfaceScattering = root.Find((RenderPipelineSettings s) => s.supportSubsurfaceScattering); increaseSssSampleCount = root.Find((RenderPipelineSettings s) => s.increaseSssSampleCount); supportVolumetrics = root.Find((RenderPipelineSettings s) => s.supportVolumetrics); increaseResolutionOfVolumetrics = root.Find((RenderPipelineSettings s) => s.increaseResolutionOfVolumetrics); supportLightLayers = root.Find((RenderPipelineSettings s) => s.supportLightLayers); colorBufferFormat = root.Find((RenderPipelineSettings s) => s.colorBufferFormat); supportedLitShaderMode = root.Find((RenderPipelineSettings s) => s.supportedLitShaderMode); supportDecals = root.Find((RenderPipelineSettings s) => s.supportDecals); MSAASampleCount = root.Find((RenderPipelineSettings s) => s.msaaSampleCount); supportMotionVectors = root.Find((RenderPipelineSettings s) => s.supportMotionVectors); supportRuntimeDebugDisplay = root.Find((RenderPipelineSettings s) => s.supportRuntimeDebugDisplay); supportDitheringCrossFade = root.Find((RenderPipelineSettings s) => s.supportDitheringCrossFade); supportDistortion = root.Find((RenderPipelineSettings s) => s.supportDistortion); supportTransparentBackface = root.Find((RenderPipelineSettings s) => s.supportTransparentBackface); supportTransparentDepthPrepass = root.Find((RenderPipelineSettings s) => s.supportTransparentDepthPrepass); supportTransparentDepthPostpass = root.Find((RenderPipelineSettings s) => s.supportTransparentDepthPostpass); supportRayTracing = root.Find((RenderPipelineSettings s) => s.supportRayTracing); supportedRaytracingTier = root.Find((RenderPipelineSettings s) => s.supportedRaytracingTier); lightLoopSettings = new SerializedGlobalLightLoopSettings(root.Find((RenderPipelineSettings s) => s.lightLoopSettings)); hdShadowInitParams = new SerializedHDShadowInitParameters(root.Find((RenderPipelineSettings s) => s.hdShadowInitParams)); decalSettings = new SerializedGlobalDecalSettings(root.Find((RenderPipelineSettings s) => s.decalSettings)); postProcessSettings = new SerializedGlobalPostProcessSettings(root.Find((RenderPipelineSettings s) => s.postProcessSettings)); dynamicResolutionSettings = new SerializedDynamicResolutionSettings(root.Find((RenderPipelineSettings s) => s.dynamicResolutionSettings)); lowresTransparentSettings = new SerializedLowResTransparencySettings(root.Find((RenderPipelineSettings s) => s.lowresTransparentSettings)); }
public SerializedRenderPipelineSettings(SerializedProperty root) { this.root = root; supportShadowMask = root.Find((RenderPipelineSettings s) => s.supportShadowMask); supportSSR = root.Find((RenderPipelineSettings s) => s.supportSSR); supportSSAO = root.Find((RenderPipelineSettings s) => s.supportSSAO); supportSubsurfaceScattering = root.Find((RenderPipelineSettings s) => s.supportSubsurfaceScattering); increaseSssSampleCount = root.Find((RenderPipelineSettings s) => s.increaseSssSampleCount); supportVolumetrics = root.Find((RenderPipelineSettings s) => s.supportVolumetrics); increaseResolutionOfVolumetrics = root.Find((RenderPipelineSettings s) => s.increaseResolutionOfVolumetrics); supportLightLayers = root.Find((RenderPipelineSettings s) => s.supportLightLayers); supportedLitShaderMode = root.Find((RenderPipelineSettings s) => s.supportedLitShaderMode); supportDecals = root.Find((RenderPipelineSettings s) => s.supportDecals); supportMSAA = root.Find((RenderPipelineSettings s) => s.supportMSAA); MSAASampleCount = root.Find((RenderPipelineSettings s) => s.msaaSampleCount); supportMotionVectors = root.Find((RenderPipelineSettings s) => s.supportMotionVectors); supportRuntimeDebugDisplay = root.Find((RenderPipelineSettings s) => s.supportRuntimeDebugDisplay); supportDitheringCrossFade = root.Find((RenderPipelineSettings s) => s.supportDitheringCrossFade); supportRayTracing = root.Find((RenderPipelineSettings s) => s.supportRayTracing); lightLoopSettings = new SerializedGlobalLightLoopSettings(root.Find((RenderPipelineSettings s) => s.lightLoopSettings)); hdShadowInitParams = new SerializedHDShadowInitParameters(root.Find((RenderPipelineSettings s) => s.hdShadowInitParams)); decalSettings = new SerializedGlobalDecalSettings(root.Find((RenderPipelineSettings s) => s.decalSettings)); }
static void Drawer_FieldHDShadows(SerializedHDShadowInitParameters serialized, Editor owner) { EditorGUILayout.LabelField(k_AtlasContent, EditorStyles.boldLabel); ++EditorGUI.indentLevel; serialized.shadowAtlasResolution.intValue = (int)(ShadowResolution)EditorGUILayout.EnumPopup(k_ResolutionContent, (ShadowResolution)serialized.shadowAtlasResolution.intValue); bool shadowMap16Bits = (DepthBits)serialized.shadowMapDepthBits.intValue == DepthBits.Depth16; shadowMap16Bits = EditorGUILayout.Toggle(k_Map16bContent, shadowMap16Bits); serialized.shadowMapDepthBits.intValue = (shadowMap16Bits) ? (int)DepthBits.Depth16 : (int)DepthBits.Depth32; EditorGUILayout.PropertyField(serialized.useDynamicViewportRescale, k_DynamicRescaleContent); --EditorGUI.indentLevel; EditorGUILayout.Space(); EditorGUILayout.DelayedIntField(serialized.maxShadowRequests, k_MaxRequestContent); EditorGUILayout.Space(); EditorGUILayout.LabelField(k_FilteringQualityContent, EditorStyles.boldLabel); ++EditorGUI.indentLevel; EditorGUILayout.PropertyField(serialized.shadowQuality, k_QualityContent); --EditorGUI.indentLevel; }