LightMap Module
Light map operations.
Functions and values
| Function or value | Description |
Full Usage:
LightMap.createEnvironmentFilterMap resolution environmentFilterSurface sampler colorFormat environmentFilterPipeline getCommandBuffer advanceCommandBufferWhenNeeded context
Parameters:
int
environmentFilterSurface : CubeMapSurface
sampler : Sampler
colorFormat : ImageFormat
environmentFilterPipeline : EnvironmentFilterPipeline
getCommandBuffer : unit -> VkCommandBuffer
advanceCommandBufferWhenNeeded : unit -> unit
context : VulkanContext
Returns: Texture
|
|
Full Usage:
LightMap.createEnvironmentFilterPipeline shaderPath colorAttachmentFormat context
Parameters:
string
colorAttachmentFormat : VkFormat
context : VulkanContext
Returns: EnvironmentFilterPipeline
|
|
Full Usage:
LightMap.createIrradianceMap resolution cubeMapSurface sampler colorFormat irradiancePipeline getCommandBuffer advanceCommandBufferWhenNeeded context
Parameters:
int
cubeMapSurface : CubeMapSurface
sampler : Sampler
colorFormat : ImageFormat
irradiancePipeline : CubeMapPipeline
getCommandBuffer : unit -> VkCommandBuffer
advanceCommandBufferWhenNeeded : unit -> unit
context : VulkanContext
Returns: Texture
|
|
Full Usage:
LightMap.createLightMap enabled origin ambientColor ambientBrightness bounds irradianceMap environmentFilterMap
Parameters:
bool
origin : Vector3
ambientColor : Color
ambientBrightness : single
bounds : Box3
irradianceMap : Texture
environmentFilterMap : Texture
Returns: LightMap
|
|
Full Usage:
LightMap.createReflectionMap render resolution origin ambientColor ambientBrightness getCommandBuffer context
Parameters:
bool -> ('a * 'b) option -> Vector3 -> Matrix4x4 -> Matrix4x4 -> Frustum -> Matrix4x4 -> Matrix4x4 -> VkRect2D -> int32 -> VkImage -> unit
resolution : int
origin : Vector3
ambientColor : 'a
ambientBrightness : 'b
getCommandBuffer : unit -> VkCommandBuffer
context : VulkanContext
Returns: Texture
|
|
Full Usage:
LightMap.destroyEnvironmentFilterPipeline environmentFilterPipeline context
Parameters:
EnvironmentFilterPipeline
context : VulkanContext
|
|
Full Usage:
LightMap.destroyLightMap lightMap context
Parameters:
LightMap
context : VulkanContext
|
|
Full Usage:
LightMap.drawEnvironmentFilter eyeCenter view projectionUnflipped roughness resolution flipped cubeMap sampler geometry colorAttachment pipeline getCommandBuffer advanceCommandBufferWhenNeeded context
Parameters:
Vector3
view : Matrix4x4
projectionUnflipped : Matrix4x4
roughness : single
resolution : single
flipped : bool
cubeMap : Texture
sampler : Sampler
geometry : CubeMapGeometry
colorAttachment : VkImageView
pipeline : EnvironmentFilterPipeline
getCommandBuffer : unit -> VkCommandBuffer
advanceCommandBufferWhenNeeded : unit -> unit
context : VulkanContext
|
|
Nu