Fudge Core
    Preparing search index...

    Class PhysicsDebugShader

    Internal class for Shaders used only by the physics debugDraw

    Index

    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

    • Compile a shader out of a string and validate it.

      Parameters

      • _shader: WebGLShader
      • _source: string

      Returns void

    • Get the location of a uniform in a shader in this program

      Parameters

      • _name: string

      Returns WebGLUniformLocation