Options
All
  • Public
  • Public/Protected
  • All
Menu

A light amplification shader.

Hierarchy

Index

Constructors

Accessors

  • get darknessLevel(): number
  • set darknessLevel(darknessLevel: number): void
  • Level of natural brightness (opposed to darkness level).

    Returns number

  • Level of natural brightness (opposed to darkness level).

    Parameters

    • darknessLevel: number

    Returns void

  • get brightness(): number
  • set brightness(brightness: number): void
  • Brightness controls the luminosity.

    Returns number

  • Brightness controls the luminosity.

    Parameters

    • brightness: number

    Returns void

  • get colorTint(): number[]
  • set colorTint(color: number[]): void
  • Tint color applied to Light Amplification.

    Returns number[]

  • Tint color applied to Light Amplification.

    Parameters

    • color: number[]

    Returns void

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

  • Parameters

    • link: 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[]; brightness: number; darknessLevel: number; enable: boolean } = ...

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

Type declaration

  • tintAlpha: number[]
  • tint: number[]
  • brightness: number
  • darknessLevel: number
  • enable: boolean
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

  • initializeBatchGeometry(): void
  • createPlugin(): any
  • registerPlugin(): void
  • _preRenderBatch(): void