From a10eea6e4ce647061813519d5b0ea496f29495b9 Mon Sep 17 00:00:00 2001
From: leonard Wu <364452445@qq.com>
Date: 星期四, 09 八月 2018 09:47:08 +0800
Subject: [PATCH] 同步最新svn内容
---
Assets/Plugins/PostProcessing/Runtime/Models/AmbientOcclusionModel.cs | 142 +++++++++++++++++++++++-----------------------
1 files changed, 71 insertions(+), 71 deletions(-)
diff --git a/Assets/Plugins/PostProcessing/Runtime/Models/AmbientOcclusionModel.cs b/Assets/Plugins/PostProcessing/Runtime/Models/AmbientOcclusionModel.cs
index 189d447..9553bdc 100644
--- a/Assets/Plugins/PostProcessing/Runtime/Models/AmbientOcclusionModel.cs
+++ b/Assets/Plugins/PostProcessing/Runtime/Models/AmbientOcclusionModel.cs
@@ -1,71 +1,71 @@
-using System;
-
-namespace UnityEngine.PostProcessing
-{
- [Serializable]
- public class AmbientOcclusionModel : PostProcessingModel
- {
- public enum SampleCount
- {
- Lowest = 3,
- Low = 6,
- Medium = 10,
- High = 16
- }
-
- [Serializable]
- public struct Settings
- {
- [Range(0, 4), Tooltip("Degree of darkness produced by the effect.")]
- public float intensity;
-
- [Min(1e-4f), Tooltip("Radius of sample points, which affects extent of darkened areas.")]
- public float radius;
-
- [Tooltip("Number of sample points, which affects quality and performance.")]
- public SampleCount sampleCount;
-
- [Tooltip("Halves the resolution of the effect to increase performance at the cost of visual quality.")]
- public bool downsampling;
-
- [Tooltip("Forces compatibility with Forward rendered objects when working with the Deferred rendering path.")]
- public bool forceForwardCompatibility;
-
- [Tooltip("Enables the ambient-only mode in that the effect only affects ambient lighting. This mode is only available with the Deferred rendering path and HDR rendering.")]
- public bool ambientOnly;
-
- [Tooltip("Toggles the use of a higher precision depth texture with the forward rendering path (may impact performances). Has no effect with the deferred rendering path.")]
- public bool highPrecision;
-
- public static Settings defaultSettings
- {
- get
- {
- return new Settings
- {
- intensity = 1f,
- radius = 0.3f,
- sampleCount = SampleCount.Medium,
- downsampling = true,
- forceForwardCompatibility = false,
- ambientOnly = false,
- highPrecision = false
- };
- }
- }
- }
-
- [SerializeField]
- Settings m_Settings = Settings.defaultSettings;
- public Settings settings
- {
- get { return m_Settings; }
- set { m_Settings = value; }
- }
-
- public override void Reset()
- {
- m_Settings = Settings.defaultSettings;
- }
- }
-}
+using System;
+
+namespace UnityEngine.PostProcessing
+{
+ [Serializable]
+ public class AmbientOcclusionModel : PostProcessingModel
+ {
+ public enum SampleCount
+ {
+ Lowest = 3,
+ Low = 6,
+ Medium = 10,
+ High = 16
+ }
+
+ [Serializable]
+ public struct Settings
+ {
+ [Range(0, 4), Tooltip("Degree of darkness produced by the effect.")]
+ public float intensity;
+
+ [Min(1e-4f), Tooltip("Radius of sample points, which affects extent of darkened areas.")]
+ public float radius;
+
+ [Tooltip("Number of sample points, which affects quality and performance.")]
+ public SampleCount sampleCount;
+
+ [Tooltip("Halves the resolution of the effect to increase performance at the cost of visual quality.")]
+ public bool downsampling;
+
+ [Tooltip("Forces compatibility with Forward rendered objects when working with the Deferred rendering path.")]
+ public bool forceForwardCompatibility;
+
+ [Tooltip("Enables the ambient-only mode in that the effect only affects ambient lighting. This mode is only available with the Deferred rendering path and HDR rendering.")]
+ public bool ambientOnly;
+
+ [Tooltip("Toggles the use of a higher precision depth texture with the forward rendering path (may impact performances). Has no effect with the deferred rendering path.")]
+ public bool highPrecision;
+
+ public static Settings defaultSettings
+ {
+ get
+ {
+ return new Settings
+ {
+ intensity = 1f,
+ radius = 0.3f,
+ sampleCount = SampleCount.Medium,
+ downsampling = true,
+ forceForwardCompatibility = false,
+ ambientOnly = false,
+ highPrecision = false
+ };
+ }
+ }
+ }
+
+ [SerializeField]
+ Settings m_Settings = Settings.defaultSettings;
+ public Settings settings
+ {
+ get { return m_Settings; }
+ set { m_Settings = value; }
+ }
+
+ public override void Reset()
+ {
+ m_Settings = Settings.defaultSettings;
+ }
+ }
+}
--
Gitblit v1.8.0