Options
All
  • Public
  • Public/Protected
  • All
Menu

A color adjustment shader.

Hierarchy

Index

Constructors

Accessors

  • get linkedToDarknessLevel(): any
  • set linkedToDarknessLevel(link: any): void
  • Returns any

  • Parameters

    • link: any

    Returns void

  • get darknessLevel(): any
  • set darknessLevel(darknessLevel: any): void
  • Returns any

  • Parameters

    • darknessLevel: any

    Returns void

  • get contrast(): any
  • set contrast(contrast: any): void
  • Returns any

  • Parameters

    • contrast: any

    Returns void

  • get exposure(): any
  • set exposure(exposure: any): void
  • Returns any

  • Parameters

    • exposure: any

    Returns void

  • get saturation(): any
  • set saturation(saturation: any): void
  • Returns any

  • Parameters

    • saturation: any

    Returns void

  • get enabled(): boolean
  • set enabled(enabled: boolean): void
  • Activate or deactivate this sampler. If set to false, the batch rendering is redirected to "batch". Otherwise, the batch rendering is directed toward the instance pluginName (might be null)

    Returns boolean

  • Activate or deactivate this sampler. If set to false, the batch rendering is redirected to "batch". Otherwise, the batch rendering is directed toward the instance pluginName (might be null)

    Parameters

    • enabled: boolean

    Returns void

  • get ADJUSTMENTS(): string
  • The adjustments made into fragment shaders.

    Returns string

Properties

pluginName: string

The plugin name associated for this instance.

_defaults: any

The initial default values of shader uniforms

#enabled: boolean = true
classPluginName: any = null
override
fragmentShader: string = ...

The raw fragment shader used by this class. A subclass of AbstractBaseShader must implement the fragmentShader static field.

defaultUniforms: { tintAlpha: number[]; tint: number[]; contrast: number; saturation: number; exposure: number; sampler: number; linkedToDarknessLevel: boolean; darknessLevel: number } = ...

The default uniform values for the shader. A subclass of AbstractBaseShader must implement the defaultUniforms static field.

Type declaration

  • tintAlpha: number[]
  • tint: number[]
  • contrast: number
  • saturation: number
  • exposure: number
  • sampler: number
  • linkedToDarknessLevel: boolean
  • darknessLevel: number
CONTRAST: string = ...

Contrast adjustment

SATURATION: string = ...

Saturation adjustment

EXPOSURE: string = ...

Exposure adjustment.

vertexShader: string = ...

The raw vertex shader used by this class. A subclass of AbstractBaseShader must implement the vertexShader static field.

batchVertexShader: string = ...

Batch default vertex

batchFragmentShader: string = ...

Batch default fragment

batchGeometry: any = PIXI.BatchGeometry

Batch geometry associated with this sampler.

batchVertexSize: number = 6

The size of a vertice with all its packed attributes.

batchDefaultUniforms: Function

A function that returns default uniforms associated with the batched version of this sampler.

abstract
reservedTextureUnits: number = 0

The number of reserved texture units for this shader that cannot be used by the batch renderer.

batchRendererClass: typeof BatchRenderer = BatchRenderer

The batch renderer to use.

batchShaderGeneratorClass: typeof BatchShaderGenerator = BatchShaderGenerator

The batch generator to use.

_packInterleavedGeometry: Function

Pack interleaved geometry custom function.

Methods

  • Perform operations which are required before binding the Shader to the Renderer.

    internal

    Parameters

    Returns void

  • initializeBatchGeometry(): void
  • createPlugin(): any
  • Create a batch plugin for this sampler class.

    Returns any

    The batch plugin class linked to this sampler class.

  • registerPlugin(): void
  • _preRenderBatch(): void