Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UniformFloat

Handler class to set uniform floats in the shader program

Hierarchy

  • UniformFloat

Index

Constructors

Properties

Methods

Constructors

constructor

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

    • gl: WebGL2RenderingContext
    • position: WebGLUniformLocation

    Returns UniformFloat

Properties

Private gl

gl: WebGL2RenderingContext

Private position

position: WebGLUniformLocation

Methods

set

  • set(value: number): void
  • Sends the given float value to the GPU

    Parameters

    • value: number

      The float value to send

    Returns void

Generated using TypeDoc