Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UniformMatrix

Handler class to set uniform matrices in the shader program

Hierarchy

  • UniformMatrix

Index

Constructors

Properties

Methods

Constructors

constructor

  • new UniformMatrix(gl: WebGL2RenderingContext, position: WebGLUniformLocation): UniformMatrix
  • Parameters

    • gl: WebGL2RenderingContext
    • position: WebGLUniformLocation

    Returns UniformMatrix

Properties

Private gl

gl: WebGL2RenderingContext

Private position

position: WebGLUniformLocation

Methods

set

  • Sends the given matrix to the GPU

    Parameters

    • matrix: Matrix4

      The matrix to send

    Returns void

Generated using TypeDoc