Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UniformVec4

Handler class to set uniform 4D vectors in the shader program

Hierarchy

  • UniformVec4

Index

Constructors

Properties

Methods

Constructors

constructor

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

    • gl: WebGL2RenderingContext
    • position: WebGLUniformLocation

    Returns UniformVec4

Properties

Private gl

gl: WebGL2RenderingContext

Private position

position: WebGLUniformLocation

Methods

set

  • Sends the given vector to the GPU as 4dimensional vector

    Parameters

    Returns void

setArray

  • setArray(vecs: Float32Array): void
  • Sends the given array to the GPU as 4D vector array.

    Parameters

    • vecs: Float32Array

      The array to send

    Returns void

Generated using TypeDoc