Method ShadowRTReAllocateIfNeeded
ShadowRTReAllocateIfNeeded(ref RTHandle, int, int, int, int, float, string)
Allocate a Shadow Map or re-allocate if it doesn't match requirements. For use only if the map requirements changes at runtime.
Declaration
public static bool ShadowRTReAllocateIfNeeded(ref RTHandle handle, int width, int height, int bits, int anisoLevel = 1, float mipMapBias = 0, string name = "")
Parameters
Type | Name | Description |
---|---|---|
RTHandle | handle | RTHandle to check (can be null). |
int | width | Width of the Shadow Map. |
int | height | Height of the Shadow Map. |
int | bits | Minimum depth bits of the Shadow Map. |
int | anisoLevel | Anisotropic filtering level of the Shadow Map. |
float | mipMapBias | Bias applied to mipmaps during filtering of the Shadow Map. |
string | name | Name of the Shadow Map. |
Returns
Type | Description |
---|---|
bool | If the RTHandle was re-allocated |