Method WouldFitInAtlas
WouldFitInAtlas(int, HDLightType)
This function verifies if a shadow map of resolution shadowResolution for a light of type lightType would fit in the atlas when inserted.
선언
public bool WouldFitInAtlas(int shadowResolution, HDLightType lightType)
파라미터
| 타입 | 이름 | 설명 |
|---|---|---|
| int | shadowResolution | The resolution of the hypothetical shadow map that we are assessing. |
| HDLightType | lightType | The type of the light that cast the hypothetical shadow map that we are assessing. |
반환
| 타입 | 설명 |
|---|---|
| bool | True if the shadow map would fit in the atlas, false otherwise. |