Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "matrices"

Index

Functions

Const $

  • $(a: any, b: any, id: string): any

Const autoNormalMatrix1

  • autoNormalMatrix1(model?: string): (Anonymous function)
  • Computes the inverse transpose of given 4x4 matrix uniform, i.e. transpose(invert(m)).

    Parameters

    • Default value model: string = "model"

      -

    Returns (Anonymous function)

Const autoNormalMatrix2

  • autoNormalMatrix2(model?: string, view?: string): (Anonymous function)
  • Computes the inverse transpose of the matrix product of given 4x4 matrix uniforms, i.e. transpose(invert(view * model)).

    Parameters

    • Default value model: string = "model"

      -

    • Default value view: string = "view"

      -

    Returns (Anonymous function)

screen2d

  • screen2d(width: number, height: number): GLMat4
  • screen2d(gl: WebGLRenderingContext): GLMat4
  • Constructs a orthographic projection matrix for using 2D screen coords, with origin in the top-left corner of the viewport. If a WebGL context is given, the its drawingBufferWidth & drawingBufferHeight values are used.

    Parameters

    • width: number

      -

    • height: number

      -

    Returns GLMat4

  • Parameters

    • gl: WebGLRenderingContext

    Returns GLMat4

Generated using TypeDoc