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/GrainModel.cs | 102 +++++++++++++++++++++++++-------------------------
1 files changed, 51 insertions(+), 51 deletions(-)
diff --git a/Assets/Plugins/PostProcessing/Runtime/Models/GrainModel.cs b/Assets/Plugins/PostProcessing/Runtime/Models/GrainModel.cs
index f2d1b56..49ee2a1 100644
--- a/Assets/Plugins/PostProcessing/Runtime/Models/GrainModel.cs
+++ b/Assets/Plugins/PostProcessing/Runtime/Models/GrainModel.cs
@@ -1,51 +1,51 @@
-using System;
-
-namespace UnityEngine.PostProcessing
-{
- [Serializable]
- public class GrainModel : PostProcessingModel
- {
- [Serializable]
- public struct Settings
- {
- [Tooltip("Enable the use of colored grain.")]
- public bool colored;
-
- [Range(0f, 1f), Tooltip("Grain strength. Higher means more visible grain.")]
- public float intensity;
-
- [Range(0.3f, 3f), Tooltip("Grain particle size.")]
- public float size;
-
- [Range(0f, 1f), Tooltip("Controls the noisiness response curve based on scene luminance. Lower values mean less noise in dark areas.")]
- public float luminanceContribution;
-
- public static Settings defaultSettings
- {
- get
- {
- return new Settings
- {
- colored = true,
- intensity = 0.5f,
- size = 1f,
- luminanceContribution = 0.8f
- };
- }
- }
- }
-
- [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 GrainModel : PostProcessingModel
+ {
+ [Serializable]
+ public struct Settings
+ {
+ [Tooltip("Enable the use of colored grain.")]
+ public bool colored;
+
+ [Range(0f, 1f), Tooltip("Grain strength. Higher means more visible grain.")]
+ public float intensity;
+
+ [Range(0.3f, 3f), Tooltip("Grain particle size.")]
+ public float size;
+
+ [Range(0f, 1f), Tooltip("Controls the noisiness response curve based on scene luminance. Lower values mean less noise in dark areas.")]
+ public float luminanceContribution;
+
+ public static Settings defaultSettings
+ {
+ get
+ {
+ return new Settings
+ {
+ colored = true,
+ intensity = 0.5f,
+ size = 1f,
+ luminanceContribution = 0.8f
+ };
+ }
+ }
+ }
+
+ [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