Plugin making provided node an occluder. Usually
node is a base mesh (average approximation) of a
body representing its real counterpart in a scene.
Occluders are not rendered by themselves but still
participate in occlusion queries. This is achieved
disableColorWrite=true to materials of
node's meshes. This flag tells rendering engine to
not write to color buffer but still write to depth
buffer. Then meshes are effectively not rendered
(fragment color write is skipped) and only occlude
all other meshes of the scene (during depth test).
• new OccluderPlugin(
|Scene node of an occluder|
|Render order (0,1,2,3)|
Dispose render plugin
disableColorWrite=true to node's materials.
This tells rendering engine to not write to color
buffer, but still write to depth buffer. This way
mesh is effectively not drawn (color buffer) but
occludes other meshes of the scene (depth test).
|Scene this plugin is attached to|
Promise resolving when initialization is finished
Releases all resources/instances created in load(). Overridden by derived classes for particular task.
Update the scene node
Main method implementing the logic of the plugin. Updates the node according to provided results. Overridden by derived classes for particular task.
|Results of video processing|
|Captured video frame|
Promise resolving when update is finished