Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UniformVec3

Handler class to set uniform vectors in the shader program

Hierarchy

  • UniformVec3

Index

Constructors

Properties

Methods

Constructors

constructor

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

    • gl: WebGL2RenderingContext
    • position: WebGLUniformLocation

    Returns UniformVec3

Properties

Private gl

gl: WebGL2RenderingContext

Private position

position: WebGLUniformLocation

Methods

set

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

    Parameters

    Returns void

setArray

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

    Parameters

    • vecs: Float32Array

      The array to send

    Returns void

Generated using TypeDoc