123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using System;
- namespace UnityEngine.PostProcessing
- {
- [Serializable]
- public class UserLutModel : PostProcessingModel
- {
- public UserLutModel.Settings settings
- {
- get
- {
- return this.m_Settings;
- }
- set
- {
- this.m_Settings = value;
- }
- }
- public override void Reset()
- {
- this.m_Settings = UserLutModel.Settings.defaultSettings;
- }
- [SerializeField]
- private UserLutModel.Settings m_Settings = UserLutModel.Settings.defaultSettings;
- [Serializable]
- public struct Settings
- {
- public static UserLutModel.Settings defaultSettings
- {
- get
- {
- return new UserLutModel.Settings
- {
- lut = null,
- contribution = 1f
- };
- }
- }
- [Tooltip("Custom lookup texture (strip format, e.g. 256x16).")]
- public Texture2D lut;
- [Range(0f, 1f)]
- [Tooltip("Blending factor.")]
- public float contribution;
- }
- }
- }
|