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.
Declaration
public bool WouldFitInAtlas(int shadowResolution, HDLightType lightType)
Parameters
Type | Name | Description |
---|---|---|
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. |
Returns
Type | Description |
---|---|
bool | True if the shadow map would fit in the atlas, false otherwise. |
WouldFitInAtlas(HDAdditionalLightData)
This function verifies if the shadow map for the passed light would fit in the atlas when inserted.
Declaration
public bool WouldFitInAtlas(HDAdditionalLightData lightData)
Parameters
Type | Name | Description |
---|---|---|
HDAdditionalLightData | lightData | The light that we try to fit in the atlas. |
Returns
Type | Description |
---|---|
bool | True if the shadow map would fit in the atlas, false otherwise. If lightData does not cast shadows, false is returned. |