Method SetCookie
SetCookie(Texture, Vector2)
Set light cookie. Note that the texture must have a power of two size.
Declaration
public void SetCookie(Texture cookie, Vector2 directionalLightCookieSize)
Parameters
Type | Name | Description |
---|---|---|
Texture | cookie | Cookie texture, must be 2D for Directional, Spot and Area light and Cubemap for Point lights |
Vector2 | directionalLightCookieSize | area light |
SetCookie(Texture)
Set light cookie.
Declaration
public void SetCookie(Texture cookie)
Parameters
Type | Name | Description |
---|---|---|
Texture | cookie | Cookie texture, must be 2D for Directional, Spot and Area light and Cubemap for Point lights |