ShaderEffect | melonJS

Class ShaderEffect

Index

Constructors

constructor

Properties

enabled

Methods

destroy setUniform

Constructors

constructor

  • new ShaderEffect(
        renderer: any,
        fragmentBody: string,
        precision?: string,
    ): ShaderEffect

    Parameters

    • renderer: any
    • fragmentBody: string
    • Optionalprecision: string

    Returns ShaderEffect

Properties

enabled

enabled: boolean = false

Methods

destroy

  • Returns void

setUniform

  • setUniform(name: string, value: object | Float32Array<ArrayBufferLike>): void

    Parameters

    • name: string
    • value: object | Float32Array<ArrayBufferLike>

    Returns void