Class: AmbientOcclusionMapRenderer

AmbientOcclusionMapRenderer(options)

 Ambient occlusion map renderer
   - Creates an ambient occlusion texture from a height map texture

Constructor

new AmbientOcclusionMapRenderer(options)

Creates an instance of AmbientOcclusionMapRenderer.
Parameters:
Name Type Description
options AmbientOcclusionMapRendererConfig
Source:

Extends

Classes

AmbientOcclusionMapRenderer

Members

clearBeforeRender

Set clear before render
Overrides:
Source:

offsetX

Gets the x offset for the ambient occlusion map.
Source:

offsetX

Sets the x offset for the ambient occlusion map.
Source:

offsetY

Gets the y offset for the ambient occlusion map.
Source:

offsetY

Sets the y offset for the ambient occlusion map.
Source:

Methods

destruct()

Destruct class
Overrides:
Source:

render()

Render
Overrides:
Source:

renderToFramebuffer(framebuffer)

Render to framebuffer
Parameters:
Name Type Description
framebuffer Framebuffer
Overrides:
Source:

setOffset(x, y)

Sets the offset for the ambient occlusion map.
Parameters:
Name Type Description
x number The x offset.
y number The y offset.
Source:

setSize(width, height)

Set size
Parameters:
Name Type Description
width number
height number
Overrides:
Source: