Method BakeMSVOMap
BakeMSVOMap(CommandBuffer, Camera, RenderTargetIdentifier, RenderTargetIdentifier?, bool, bool)
Utility method to bake a multi-scale volumetric obscurance map for the current camera. This will only work if ambient occlusion is active in the scene.
Declaration
public void BakeMSVOMap(CommandBuffer cmd, Camera camera, RenderTargetIdentifier destination, RenderTargetIdentifier? depthMap, bool invert, bool isMSAA = false)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | The command buffer to use for rendering steps |
Camera | camera | The camera to render ambient occlusion for |
RenderTargetIdentifier | destination | The destination render target |
RenderTargetIdentifier? | depthMap | The depth map to use. If |
bool | invert | Should the result be inverted? |
bool | isMSAA | Should use MSAA? |