ClearCommand

new Cesium.ClearCommand()

Represents a command to the renderer for clearing a framebuffer.

Members

staticconstantCesium.ClearCommand.ALL : ClearCommand

Clears color to (0.0, 0.0, 0.0, 0.0); depth to 1.0; and stencil to 0.

color : Color

The value to clear the color buffer to. When undefined, the color buffer is not cleared.
Default Value: undefined

depth : Number

The value to clear the depth buffer to. When undefined, the depth buffer is not cleared.
Default Value: undefined

framebuffer : Framebuffer

The framebuffer to clear.
Default Value: undefined

owner : Object

The object who created this command. This is useful for debugging command execution; it allows you to see who created a command when you only have a reference to the command, and can be used to selectively execute commands with Scene#debugCommandFilter.
Default Value: undefined
See:
  • Scene#debugCommandFilter

pass : Pass

The pass in which to run this command.
Default Value: undefined

renderState : RenderState

The render state to apply when executing the clear command. The following states affect clearing: scissor test, color mask, depth mask, and stencil mask. When the render state is undefined, the default render state is used.
Default Value: undefined

stencil : Number

The value to clear the stencil buffer to. When undefined, the stencil buffer is not cleared.
Default Value: undefined