You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.1 KiB
32 lines
1.1 KiB
using System;
|
|
|
|
// define ENABLE_BAKED_PLANAR to enable baked planar
|
|
|
|
namespace UnityEngine.Rendering.HighDefinition
|
|
{
|
|
/// <summary>
|
|
/// The planar reflection probe component.
|
|
/// </summary>
|
|
[HDRPHelpURLAttribute("Planar-Reflection-Probe")]
|
|
[ExecuteAlways]
|
|
[AddComponentMenu("Rendering/Planar Reflection Probe")]
|
|
[Icon("PlanarReflections")]
|
|
public sealed partial class PlanarReflectionProbe : HDProbe
|
|
{
|
|
// Serialized data
|
|
[SerializeField]
|
|
Vector3 m_LocalReferencePosition = -Vector3.forward;
|
|
|
|
/// <summary>Reference position to mirror to find the capture point. (local space)</summary>
|
|
public Vector3 localReferencePosition { get => m_LocalReferencePosition; set => m_LocalReferencePosition = value; }
|
|
/// <summary>Reference position to mirror to find the capture point. (world space)</summary>
|
|
public Vector3 referencePosition => transform.TransformPoint(m_LocalReferencePosition);
|
|
|
|
void Awake()
|
|
{
|
|
type = ProbeSettings.ProbeType.PlanarProbe;
|
|
|
|
k_PlanarProbeMigration.Migrate(this);
|
|
}
|
|
}
|
|
}
|