VulkanLightingProperties
Package: Libraries.Game.Graphics.Vulkan · Inherits from: Libraries.Language.Object
This class holds configuration options for the lighting and shadow systems in Vulkan. The values here are "constant" in the sense that once the application begins they will not change, but their values are not set until the Game starts. It also holds the global descriptor set
Variables
integer BEHIND_LEVEL_COUNT: set's layout is made the first time it is asked for.
Actions
Create(Libraries.Game.Graphics.Vulkan.VulkanDevice device, Libraries.Game.DesktopConfiguration configuration)
Parameters
deviceLibraries.Game.Graphics.Vulkan.VulkanDeviceconfigurationLibraries.Game.DesktopConfiguration
GetBehindDescriptorSetLayout()
This action returns the layout of the set holding what is behind see-through models: BEHIND_LEVEL_COUNT bindings, 0 to 3, each one image sampler for the fragment shader, the sharpest first. Forward programs use it as set 6. It is made the first time.
Returns
Libraries.Game.Graphics.Vulkan.VulkanDescriptorSetLayout: The layout.
GetMaximumLights()
Returns
integer
GetPointShadowMapSize()
This action returns the size, in pixels, of each face of a point light's shadow map, from DesktopConfiguration's pointShadowMapSize.
Returns
integer: The size of a point light's shadow map face.
GetShadowCubemapsDescriptorSetLayout()
This action returns the size, in pixels, of each face of a point light's shadow map, from DesktopConfiguration's pointShadowMapSize.
Returns
Libraries.Game.Graphics.Vulkan.VulkanDescriptorSetLayout: The size of a point light's shadow map face.
GetShadowMapCascadeCount()
Returns
integer
GetShadowMapSize()
Returns
integer
GetSkyLightCubeCount()
This action returns how many cubes the sky light's descriptor set holds: the sky's own cube, then four smaller, blurrier ones (64, 32, 16 and 8 pixels a side).
Returns
integer: The number of cubes, 5.
GetSkyLightDescriptorSetLayout()
This action returns the layout of the sky light's descriptor set: SKY_LIGHT_CUBE_COUNT bindings, 0 to 4, each one cube sampler for the fragment shader. The lighting pass uses it as set 3, and forward programs, such as water and see-through models, as set 5. It is made the first time.
Returns
Libraries.Game.Graphics.Vulkan.VulkanDescriptorSetLayout: The layout.