Vizard 8 » Command Index » Vizard objects » node3d » <node3d:renderNode>.setClearMask
8.1

<node3d:renderNode>.setClearMask

Set the clear mask for the render node

<node3d:renderNode>.setClearMask(  
mask  
mode = viz.MASK_SET  
)  
mask
A combination of the following bit flags:

Clear masks

viz.GL_COLOR_BUFFER_BIT

The color buffer

viz.GL_DEPTH_BUFFER_BIT

The depth buffer

viz.GL_STENCIL_BUFFER_BIT

The stencil buffer

mode = viz.MASK_SET
Mode for specifying how to apply the mask. Can be one of the following:

Mask modes

viz.MASK_SET

Set the mask to the new value.

viz.MASK_ADD

Add the value to the existing mask.

viz.MASK_REMOVE

Remove the value from the existing mask.

viz.MASK_TOGGLE

Toggle the value with the existing mask.

Remarks

The clear mask controls which OpenGL bits are cleared before the node begins rendering. If mask is viz.AUTO_COMPUTE, then the clear mask will be inherited from the main rendering pass.

The default value is (viz.GL_COLOR_BUFFER_BIT | viz.GL_DEPTH_BUFFER_BIT)

Return Value

None

See also

<node3d:renderNode>.getClearMask