Class IESMetaData
Common class to store metadata of an IES file
Inherited Members
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
[Serializable]
public class IESMetaData
Fields
ApplyLightAttenuation
Enable attenuation used for Spot recommanded to be true, particulary with large angle of "SpotAngle" (cf. Gnomonic Projection)
Declaration
public bool ApplyLightAttenuation
Field Value
Type | Description |
---|---|
bool |
CookieCompression
Compression used to generate the texture (CompressedHQ by default (BC7))
Declaration
public TextureImporterCompression CookieCompression
Field Value
Type | Description |
---|---|
TextureImporterCompression |
FileFormatVersion
Version of the IES File
Declaration
public string FileFormatVersion
Field Value
Type | Description |
---|---|
string |
IESMaximumIntensity
IES Max Intensity depends on the various information stored on the IES file
Declaration
public float IESMaximumIntensity
Field Value
Type | Description |
---|---|
float |
IESMaximumIntensityUnit
Unit used to measure the IESMaximumIntensity
Declaration
public string IESMaximumIntensityUnit
Field Value
Type | Description |
---|---|
string |
IESPhotometricType
Total light intensity (in Lumens) stored on the file, usage of it is optional (through the prefab subasset inside the IESObject)
Declaration
public string IESPhotometricType
Field Value
Type | Description |
---|---|
string |
LampCatalogNumber
Lamp Catalog Number
Declaration
public string LampCatalogNumber
Field Value
Type | Description |
---|---|
string |
LampDescription
Lamp Description
Declaration
public string LampDescription
Field Value
Type | Description |
---|---|
string |
LightAimAxisRotation
Internally we use 2D projection, we have to choose one axis to project the IES propertly
Declaration
[Range(-180, 180)]
public float LightAimAxisRotation
Field Value
Type | Description |
---|---|
float |
LuminaireCatalogNumber
Luninaire Catalog Number
Declaration
public string LuminaireCatalogNumber
Field Value
Type | Description |
---|---|
string |
LuminaireDescription
Luminaire Description
Declaration
public string LuminaireDescription
Field Value
Type | Description |
---|---|
string |
Manufacturer
Manufacturer of the current IES file
Declaration
public string Manufacturer
Field Value
Type | Description |
---|---|
string |
PrefabLightType
Prefab Light Type (optional to generate the texture used by the renderer)
Declaration
public IESLightType PrefabLightType
Field Value
Type | Description |
---|---|
IESLightType |
SpotAngle
Spot angle used for the Gnomonic projection of the IES. This parameter will be responsible of the pixel footprint in the 2D Texture https://en.wikipedia.org/wiki/Gnomonic_projection
Declaration
[Range(1, 179)]
public float SpotAngle
Field Value
Type | Description |
---|---|
float |
UseIESMaximumIntensity
Enable max intensity for the texture generation
Declaration
public bool UseIESMaximumIntensity
Field Value
Type | Description |
---|---|
bool |
iesSize
IES Size of the texture used (same parameter for Point and Spot)
Declaration
public IESResolution iesSize
Field Value
Type | Description |
---|---|
IESResolution |
Methods
GetHashCode()
Get Hash describing an unique IES
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | The Hash of the IES Object |