Constructor
new AmbientOcclusionMapRenderer(options)
Creates an instance of AmbientOcclusionMapRenderer.
Parameters:
Name | Type | Description |
---|---|---|
options |
AmbientOcclusionMapRendererConfig |
Extends
Classes
Members
clearBeforeRender
Set clear before render
- Overrides:
- Source:
offsetX
Gets the x offset for the ambient occlusion map.
offsetX
Sets the x offset for the ambient occlusion map.
offsetY
Gets the y offset for the ambient occlusion map.
offsetY
Sets the y offset for the ambient occlusion map.
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. |
setSize(width, height)
Set size
Parameters:
Name | Type | Description |
---|---|---|
width |
number | |
height |
number |
- Overrides:
- Source: