Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ClearOptions

Index

Properties

color?: Vec4

RGBA values (range 0-1) to use when the color buffer is cleared. Initial value: [0, 0, 0, 0]. Relevant WebGL API: gl.clearColor

depth?: number

Depth value (range 0-1) to use when the depth buffer is cleared. Initial value: 1. Relevant WebGL API: gl.clearDepth

framebuffer?: null | Framebuffer

Sets the target framebuffer to clear (if unspecified, uses the current framebuffer object). Relevant WebGL API: gl.bindFrameBuffer

stencil?: number

The index used when the stencil buffer is cleared. Initial value: 0. Relevant WebGL API: gl.clearStencil

Generated using TypeDoc