class FoxLightData
package foxlite.lights
Static variables
Static methods
Constructor
Variables
shadowCasterData:FoxTextureBuffer = new FoxTextureBuffer((MAX_DIRECTIONAL_LIGHTS + MAX_SPOT_LIGHTS) * 4, 4)
shadowMapMaxWidth:Int = 4096
The max width of the whole shadowMapAtlas. The shadowmap will expand to this size.
shadowMapMaxHeight:Int = 4096
The max height of the whole shadowMapAtlas. The shadowmap will expand to this size.
directionalLightShadowMapSize:Int = 1024
The size of light shadowmap atlas. Must be a PowerOf2 for optimal packing. This also limits the number of shadows you can have based on how many regions can be packed inside the shadow map atlas.
In short, this is the 'Shadow texture size' for each light, but the bigger it is, the less shadows you can have.
tiles0:Int = 0
Calculated tiles for directional lights.
This value is result of Math.floor(shadowMapMaxWidth / directionalLightShadowMapSize)
pointLightShadowMapSize:Int = 512
The size of light shadowmap atlas. Must be a PowerOf2 for optimal packing. This also limits the number of shadows you can have based on how many regions can be packed inside the shadow map atlas.
In short, this is the 'Shadow texture size' for each light, but the bigger it is, the less shadows you can have.
tiles1:Int = 0
Calculated tiles for point lights.
This value is result of Math.floor(shadowMapMaxWidth / pointLightShadowMapSize)
spotLightShadowMapSize:Int = 512
The size of light shadowmap atlas. Must be a PowerOf2 for optimal packing. This also limits the number of shadows you can have based on how many regions can be packed inside the shadow map atlas.
In short, this is the 'Shadow texture size' for each light, but the bigger it is, the less shadows you can have.
tiles2:Int = 0
Calculated tiles for point lights.
This value is result of Math.floor(shadowMapMaxWidth / spotLightShadowMapSize)