import {OcclusionTester} from '@xeokit/xeokit-sdk/src/viewer/scene/webgl/occlusion/OcclusionTester.js'
OcclusionTester
Manages occlusion testing. Private member of a Renderer.
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
|
|
public |
errors: * |
|
public get |
Returns true if an occlusion test is needed. |
Method Summary
Public Methods | ||
public |
addMarker(marker: *) Adds a Marker for occlusion testing. |
|
public |
Binds the render buffer. |
|
public |
destroy() Destroys this OcclusionTester. |
|
public |
Sets visibilities of Markers according to whether or not they are obscured by anything in the render buffer. |
|
public |
Draws Markers to the render buffer. |
|
public |
markerWorldPosUpdated(marker: *) Notifies OcclusionTester that a Marker has updated its World-space position. |
|
public |
removeMarker(marker: *) Removes a Marker from occlusion testing. |
|
public |
Unbinds render buffer. |
Public Constructors
public constructor() source
Public Members
public errors: * source
Public Methods
public addMarker(marker: *) source
Adds a Marker for occlusion testing.
Params:
Name | Type | Attribute | Description |
marker | * |
public bindRenderBuf() source
Binds the render buffer. After calling this, the caller then renders object silhouettes to the render buffer, then calls drawMarkers() and doOcclusionTest().
public doOcclusionTest() source
Sets visibilities of Markers according to whether or not they are obscured by anything in the render buffer.
public markerWorldPosUpdated(marker: *) source
Notifies OcclusionTester that a Marker has updated its World-space position.
Params:
Name | Type | Attribute | Description |
marker | * |
public removeMarker(marker: *) source
Removes a Marker from occlusion testing.
Params:
Name | Type | Attribute | Description |
marker | * |