phaser - v4.0.0-rc.4
    Preparing search index...
    • Update lighting uniforms for a given shader program manager. This is a standard procedure for most lighting shaders.

      Parameters

      • enable: boolean

        Whether to enable lighting.

      • drawingContext: DrawingContext

        The DrawingContext instance.

      • programManager: ProgramManager

        The ShaderProgramManager instance.

      • textureUnit: number

        The texture unit to use for the normal map.

      • vec: Math.Vector2

        A Vector2 instance.

      • OptionalselfShadow: boolean

        Whether to enable self-shadowing.

      • OptionalselfShadowPenumbra: number

        The penumbra value for self-shadowing.

      • OptionalselfShadowThreshold: number

        The threshold value for self-shadowing.

      Returns void