Method Generate2DCookie
Generate2DCookie(TextureImporterCompression, float, int, bool)
Generating a 2D Texture of this cookie, using a Gnomonic projection of the bottom of the IES
Declaration
public (string, Texture) Generate2DCookie(TextureImporterCompression compression, float coneAngle, int textureSize, bool applyLightAttenuation)
Parameters
| Type | Name | Description |
|---|---|---|
| TextureImporterCompression | compression | Compression parameter requestted. |
| float | coneAngle | Cone angle used to performe the Gnomonic projection. |
| int | textureSize | The resquested size. |
| bool | applyLightAttenuation | Bool to enable or not the Light Attenuation based on the squared distance. |
Returns
| Type | Description |
|---|---|
| (string, Texture) | A Generated 2D texture doing the projection of the IES using the Gnomonic projection of the bottom half hemisphere with the given 'cone angle' |