This is a WebGL state, and is is passed to PIXI.StateSystem.

Each mesh rendered may require WebGL to be in a different state. For example you may want different blend mode or to enable polygon offsets

Memberof

PIXI

Constructors

  • Returns State

Properties

_blendMode: BLEND_MODES
_polygonOffset: number
data: number

Accessors

  • get blend(): boolean
  • Activates blending of the computed fragment color values.

    Returns boolean

    Default

    true
    
  • set blend(value): void
  • Parameters

    • value: boolean

    Returns void

  • get blendMode(): BLEND_MODES
  • The blend mode to be applied when this state is set. Apply a value of PIXI.BLEND_MODES.NORMAL to reset the blend mode. Setting this mode to anything other than NO_BLEND will automatically switch blending on.

    Returns BLEND_MODES

    Default

    PIXI.BLEND_MODES.NORMAL
    
  • set blendMode(value): void
  • Parameters

    Returns void

  • get clockwiseFrontFace(): boolean
  • Specifies whether or not front or back-facing polygons can be culled.

    Returns boolean

    Default

    false
    
  • set clockwiseFrontFace(value): void
  • Parameters

    • value: boolean

    Returns void

  • get culling(): boolean
  • Activates culling of polygons.

    Returns boolean

    Default

    false
    
  • set culling(value): void
  • Parameters

    • value: boolean

    Returns void

  • get depthMask(): boolean
  • Enables or disables writing to the depth buffer.

    Returns boolean

    Default

    true
    
  • set depthMask(value): void
  • Parameters

    • value: boolean

    Returns void

  • get depthTest(): boolean
  • Activates depth comparisons and updates to the depth buffer.

    Returns boolean

    Default

    false
    
  • set depthTest(value): void
  • Parameters

    • value: boolean

    Returns void

  • get offsets(): boolean
  • Activates adding an offset to depth values of polygon's fragments

    Returns boolean

    Default

    false
    
  • set offsets(value): void
  • Parameters

    • value: boolean

    Returns void

  • get polygonOffset(): number
  • The polygon offset. Setting this property to anything other than 0 will automatically enable polygon offset fill.

    Returns number

    Default

    0
    
  • set polygonOffset(value): void
  • Parameters

    • value: number

    Returns void

Methods

  • Returns State

Generated using TypeDoc