Internal class for Shaders used only by the physics debugDraw

Constructors

Properties

fragmentShader: WebGLShader
gl: WebGL2RenderingContext
program: WebGLProgram
uniformLocationMap: Map<string, WebGLUniformLocation>
vertexShader: WebGLShader

Methods

  • Take glsl shaders as strings and compile them, attaching the compiled shaders to a program thats used by this rendering context.

    Parameters

    • _vertexSource: string
    • _fragmentSource: string

    Returns void