new HBAO(numRays, numSamplesPerRay)
Parameters:
Name | Type | Description |
---|---|---|
numRays |
The amount of rays to march over. |
|
numSamplesPerRay |
The samples per ray during a march. |
- See:
-
Renderer#ambientOcclusion
Properties:
Name | Type | Description |
---|---|---|
sampleRadius |
number | The sample radius in world space to search for occluders. |
fallOffDistance |
number | The maximum distance for occluders to still count. |
strength |
number | The strength of the ambient occlusion effect. |
bias |
number | The angle bias to prevent some artifacts. |
scale |
number | The scale at which to calculate the ambient occlusion (usually 0.5, half-resolution) |
Extends
Members
-
entity
-
The target entity.
- Inherited From:
-
onUpdate
-
If provided, this method will be called every frame, allowing updating the entity.
- Inherited From:
Methods
-
_swapHDRFrontAndBack()
-
Child classes need to call this when rendering to and from full-resolution textures. This will effectively swap hdrSource and hdrTarget to allow ping-ponging.
- Inherited From:
-
isSupported()
-
Returns whether this Effect is supported considering the current capabilities.
- Inherited From: