123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using System;
- namespace UnityEngine.PostProcessing
- {
- [Serializable]
- public class ChromaticAberrationModel : PostProcessingModel
- {
- public ChromaticAberrationModel.Settings settings
- {
- get
- {
- return this.m_Settings;
- }
- set
- {
- this.m_Settings = value;
- }
- }
- public override void Reset()
- {
- this.m_Settings = ChromaticAberrationModel.Settings.defaultSettings;
- }
- [SerializeField]
- private ChromaticAberrationModel.Settings m_Settings = ChromaticAberrationModel.Settings.defaultSettings;
- [Serializable]
- public struct Settings
- {
- public static ChromaticAberrationModel.Settings defaultSettings
- {
- get
- {
- return new ChromaticAberrationModel.Settings
- {
- spectralTexture = null,
- intensity = 0.1f
- };
- }
- }
- [Tooltip("Shift the hue of chromatic aberrations.")]
- public Texture2D spectralTexture;
- [Range(0f, 1f)]
- [Tooltip("Amount of tangential distortion.")]
- public float intensity;
- }
- }
- }
|