예제 #1
0
    #pragma warning restore 618

        public SerializedRenderPipelineSettings(SerializedProperty root)
        {
            this.root = root;

            supportShadowMask           = root.Find((RenderPipelineSettings s) => s.supportShadowMask);
            supportSSR                  = root.Find((RenderPipelineSettings s) => s.supportSSR);
            supportSSRTransparent       = root.Find((RenderPipelineSettings s) => s.supportSSRTransparent);
            supportSSAO                 = root.Find((RenderPipelineSettings s) => s.supportSSAO);
            supportSSGI                 = root.Find((RenderPipelineSettings s) => s.supportSSGI);
            supportSubsurfaceScattering = root.Find((RenderPipelineSettings s) => s.supportSubsurfaceScattering);
            sssSampleBudget             = new SerializedScalableSetting(root.Find((RenderPipelineSettings s) => s.sssSampleBudget));
            supportVolumetrics          = root.Find((RenderPipelineSettings s) => s.supportVolumetrics);
            supportLightLayers          = root.Find((RenderPipelineSettings s) => s.supportLightLayers);
            lightLayerName0             = root.Find((RenderPipelineSettings s) => s.lightLayerName0);
            lightLayerName1             = root.Find((RenderPipelineSettings s) => s.lightLayerName1);
            lightLayerName2             = root.Find((RenderPipelineSettings s) => s.lightLayerName2);
            lightLayerName3             = root.Find((RenderPipelineSettings s) => s.lightLayerName3);
            lightLayerName4             = root.Find((RenderPipelineSettings s) => s.lightLayerName4);
            lightLayerName5             = root.Find((RenderPipelineSettings s) => s.lightLayerName5);
            lightLayerName6             = root.Find((RenderPipelineSettings s) => s.lightLayerName6);
            lightLayerName7             = root.Find((RenderPipelineSettings s) => s.lightLayerName7);
            colorBufferFormat           = root.Find((RenderPipelineSettings s) => s.colorBufferFormat);
            customBufferFormat          = root.Find((RenderPipelineSettings s) => s.customBufferFormat);
            supportCustomPass           = root.Find((RenderPipelineSettings s) => s.supportCustomPass);
            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);
            supportTerrainHole              = root.Find((RenderPipelineSettings s) => s.supportTerrainHole);
            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);
            supportProbeVolume              = root.Find((RenderPipelineSettings s) => s.supportProbeVolume);

            supportRayTracing       = root.Find((RenderPipelineSettings s) => s.supportRayTracing);
            supportedRayTracingMode = root.Find((RenderPipelineSettings s) => s.supportedRayTracingMode);

            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));
            xrSettings = new SerializedXRSettings(root.Find((RenderPipelineSettings s) => s.xrSettings));
            postProcessQualitySettings = new SerializedPostProcessingQualitySettings(root.Find((RenderPipelineSettings s) => s.postProcessQualitySettings));
            probeVolumeSettings        = new SerializedGlobalProbeVolumeSettings(root.Find((RenderPipelineSettings s) => s.probeVolumeSettings));

            lightSettings           = new SerializedLightSettings(root.Find((RenderPipelineSettings s) => s.lightSettings));
            lodBias                 = new SerializedScalableSetting(root.Find((RenderPipelineSettings s) => s.lodBias));
            maximumLODLevel         = new SerializedScalableSetting(root.Find((RenderPipelineSettings s) => s.maximumLODLevel));
            lightingQualitySettings = new SerializedLightingQualitySettings(root.Find((RenderPipelineSettings s) => s.lightingQualitySettings));

        #pragma warning disable 618 // Type or member is obsolete
            m_ObsoleteincreaseSssSampleCount = root.Find((RenderPipelineSettings s) => s.m_ObsoleteincreaseSssSampleCount);
        #pragma warning restore 618
        }
예제 #2
0
#pragma warning restore 618

        public SerializedRenderPipelineSettings(SerializedProperty root)
        {
            this.root = root;

            supportShadowMask           = root.Find((RenderPipelineSettings s) => s.supportShadowMask);
            supportSSR                  = root.Find((RenderPipelineSettings s) => s.supportSSR);
            supportSSRTransparent       = root.Find((RenderPipelineSettings s) => s.supportSSRTransparent);
            supportSSAO                 = root.Find((RenderPipelineSettings s) => s.supportSSAO);
            supportSSGI                 = root.Find((RenderPipelineSettings s) => s.supportSSGI);
            supportSubsurfaceScattering = root.Find((RenderPipelineSettings s) => s.supportSubsurfaceScattering);
            sssSampleBudget             = new SerializedScalableSetting(root.Find((RenderPipelineSettings s) => s.sssSampleBudget));
            supportVolumetrics          = root.Find((RenderPipelineSettings s) => s.supportVolumetrics);
            supportVolumetricClouds     = root.Find((RenderPipelineSettings s) => s.supportVolumetricClouds);
            supportWater                = root.Find((RenderPipelineSettings s) => s.supportWater);
            waterSimulationResolution   = root.Find((RenderPipelineSettings s) => s.waterSimulationResolution);
            supportLightLayers          = root.Find((RenderPipelineSettings s) => s.supportLightLayers);
            colorBufferFormat           = root.Find((RenderPipelineSettings s) => s.colorBufferFormat);
            customBufferFormat          = root.Find((RenderPipelineSettings s) => s.customBufferFormat);
            supportCustomPass           = root.Find((RenderPipelineSettings s) => s.supportCustomPass);
            supportedLitShaderMode      = root.Find((RenderPipelineSettings s) => s.supportedLitShaderMode);
            planarReflectionResolution  = new SerializedScalableSetting(root.Find((RenderPipelineSettings s) => s.planarReflectionResolution));

            supportDecals                   = root.Find((RenderPipelineSettings s) => s.supportDecals);
            supportDecalLayers              = root.Find((RenderPipelineSettings s) => s.supportDecalLayers);
            supportSurfaceGradient          = root.Find((RenderPipelineSettings s) => s.supportSurfaceGradient);
            decalNormalBufferHP             = root.Find((RenderPipelineSettings s) => s.decalNormalBufferHP);
            MSAASampleCount                 = root.Find((RenderPipelineSettings s) => s.msaaSampleCount);
            supportMotionVectors            = root.Find((RenderPipelineSettings s) => s.supportMotionVectors);
            supportRuntimeAOVAPI            = root.Find((RenderPipelineSettings s) => s.supportRuntimeAOVAPI);
            supportDitheringCrossFade       = root.Find((RenderPipelineSettings s) => s.supportDitheringCrossFade);
            supportTerrainHole              = root.Find((RenderPipelineSettings s) => s.supportTerrainHole);
            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);
            supportProbeVolume              = root.Find((RenderPipelineSettings s) => s.supportProbeVolume);
            probeVolumeTextureSize          = root.Find((RenderPipelineSettings s) => s.probeVolumeMemoryBudget);
            supportProbeVolumeStreaming     = root.Find((RenderPipelineSettings s) => s.supportProbeVolumeStreaming);
            probeVolumeSHBands              = root.Find((RenderPipelineSettings s) => s.probeVolumeSHBands);
            supportRayTracing               = root.Find((RenderPipelineSettings s) => s.supportRayTracing);
            supportedRayTracingMode         = root.Find((RenderPipelineSettings s) => s.supportedRayTracingMode);

            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));
            xrSettings = new SerializedXRSettings(root.Find((RenderPipelineSettings s) => s.xrSettings));
            postProcessQualitySettings = new SerializedPostProcessingQualitySettings(root.Find((RenderPipelineSettings s) => s.postProcessQualitySettings));

            lightSettings           = new SerializedLightSettings(root.Find((RenderPipelineSettings s) => s.lightSettings));
            lodBias                 = new SerializedScalableSetting(root.Find((RenderPipelineSettings s) => s.lodBias));
            maximumLODLevel         = new SerializedScalableSetting(root.Find((RenderPipelineSettings s) => s.maximumLODLevel));
            lightingQualitySettings = new SerializedLightingQualitySettings(root.Find((RenderPipelineSettings s) => s.lightingQualitySettings));

#pragma warning disable 618 // Type or member is obsolete
            m_ObsoleteincreaseSssSampleCount = root.Find((RenderPipelineSettings s) => s.m_ObsoleteincreaseSssSampleCount);
#pragma warning restore 618
        }
        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);
            supportTerrainHole              = root.Find((RenderPipelineSettings s) => s.supportTerrainHole);
            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));
            xrSettings = new SerializedXRSettings(root.Find((RenderPipelineSettings s) => s.xrSettings));
            postProcessQualitySettings = new SerializedPostProcessingQualitySettings(root.Find((RenderPipelineSettings s) => s.postProcessQualitySettings));

            lightSettings   = new SerializedLightSettings(root.Find((RenderPipelineSettings s) => s.lightSettings));
            lodBias         = new SerializedScalableSetting(root.Find((RenderPipelineSettings s) => s.lodBias));
            maximumLODLevel = new SerializedScalableSetting(root.Find((RenderPipelineSettings s) => s.maximumLODLevel));
        }