melonjs
    Preparing search index...

    Class GLShader

    a base GL Shader object

    Index

    Constructors

    Properties

    attributes: number[]

    the location attributes of the shader

    fragment: string

    the fragment shader source code

    the active gl rendering context

    program: WebGLProgram

    a reference to the shader program (once compiled)

    uniforms: object

    the uniforms of the shader

    vertex: string

    the vertex shader source code

    Methods

    • returns the location of an attribute variable in this shader program

      Parameters

      • name: string

        the name of the attribute variable whose location to get.

      Returns number

      number indicating the location of the variable name if found. Returns -1 otherwise