Class SensorMaterial
Provide capability to define a multi-spectral reflectance curve between 0.35um to 2.5um.
Useful when sampling with the lidar or other sensor in this wavelength range.
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: Global Namespace
Syntax
public class SensorMaterial : MonoBehaviour
Fields
spectralDistribution
A texture with a spectral distribution between 0.35um to 2.5um.
Declaration
[Tooltip("A texture with a spectral distribution between 0.35um to 2.5um.")]
public Texture2D spectralDistribution
Field Value
Type | Description |
---|---|
Texture2D |
SRDCurve
Helper used to display and edit the multi-spectral reflectance curve.
Declaration
[NonSerialized]
public AnimationCurve SRDCurve
Field Value
Type | Description |
---|---|
AnimationCurve |
Methods
BuildSRDCurve()
Populate the curve helper (AnimationCurve) with the spectralDistribution texture set.
Declaration
public void BuildSRDCurve()
GetReflectanceValue(Single)
Get the reflectance corresponding to the wavelength.
Declaration
public float GetReflectanceValue(float wavelenghtum)
Parameters
Type | Name | Description |
---|---|---|
Single | wavelenghtum | wavelength in micrometer. |
Returns
Type | Description |
---|---|
Single | A reflectance value between 0 and 1. |