Class IESMetaData
Common class to store metadata of an IES file
Namespace: UnityEditor.Rendering
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 |
---|---|
Boolean |
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 |
---|---|
Single |
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 |
iesSize
IES Size of the texture used (same parameter for Point and Spot)
Declaration
public IESResolution iesSize
Field Value
Type | Description |
---|---|
IESResolution |
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(-180F, 180F)]
public float LightAimAxisRotation
Field Value
Type | Description |
---|---|
Single |
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(1F, 179F)]
public float SpotAngle
Field Value
Type | Description |
---|---|
Single |
UseIESMaximumIntensity
Enable max intensity for the texture generation
Declaration
public bool UseIESMaximumIntensity
Field Value
Type | Description |
---|---|
Boolean |
Methods
GetHashCode()
Get Hash describing an unique IES
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | The Hash of the IES Object |