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.
선언
public static bool ShadowRTReAllocateIfNeeded(ref RTHandle handle, int width, int height, int bits, int anisoLevel = 1, float mipMapBias = 0, string name = "")
파라미터
타입 | 이름 | 설명 |
---|---|---|
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. |
반환
타입 | 설명 |
---|---|
bool | If the RTHandle was re-allocated |