1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- using System;
-
- namespace UnityEngine.Rendering.Universal
- {
- public sealed partial class Light2D
- {
- [SerializeField] float m_PointLightInnerAngle = 360.0f;
- [SerializeField] float m_PointLightOuterAngle = 360.0f;
- [SerializeField] float m_PointLightInnerRadius = 0.0f;
- [SerializeField] float m_PointLightOuterRadius = 1.0f;
-
- /// <summary>
- /// The inner angle of the point light shape. The bigger the angle, the wider the gap.
- /// The gap between the innner and outer angle will determine the size of the light's penumbra.
- /// </summary>
- public float pointLightInnerAngle
- {
- get => m_PointLightInnerAngle;
- set => m_PointLightInnerAngle = value;
- }
-
- /// <summary>
- /// The angle that determins the shape of the inner light area.
- /// The gap between the innner and outer angle will determine the size of the light's penumbra.
- /// </summary>
- public float pointLightOuterAngle
- {
- get => m_PointLightOuterAngle;
- set => m_PointLightOuterAngle = value;
- }
-
- /// <summary>
- /// The radius of the inner light area that has full brightness.
- /// The gap between the inner and outer radius will determine the size of the light's penumbra.
- /// </summary>
- public float pointLightInnerRadius
- {
- get => m_PointLightInnerRadius;
- set => m_PointLightInnerRadius = value;
- }
-
- /// <summary>
- /// The outer radius that determines the size of the light.
- /// The gap between the inner and outer radius will determine the size of the light's penumbra.
- /// </summary>
- public float pointLightOuterRadius
- {
- get => m_PointLightOuterRadius;
- set => m_PointLightOuterRadius = value;
- }
-
- /// <summary>
- /// The point light distance.
- /// This is obsolete and has been changed to normalMapDistance.
- /// </summary>
- [Obsolete("pointLightDistance has been changed to normalMapDistance", true)]
- public float pointLightDistance => m_NormalMapDistance;
-
- /// <summary>
- /// The quality of the point light.
- /// This is obsolete and has been changed to normalMapQuality.
- /// </summary>
- [Obsolete("pointLightQuality has been changed to normalMapQuality", true)]
- public NormalMapQuality pointLightQuality => m_NormalMapQuality;
-
- internal bool isPointLight => m_LightType == LightType.Point;
- }
- }
|