Uniform

abstract class Uniform<T>(shader: Shader, name: String)

Uniforms are used to communicate variables with shaders at runtime. This class offers some utilities to use that functionality.

Constructors

Link copied to clipboard
fun Uniform(shader: Shader, name: String)

Functions

Link copied to clipboard
abstract fun update()

Updates the value of this impl to the GPU. The value(s) is(are) loaded from the specified source in the respective constructors.

Properties

Link copied to clipboard
abstract var lastValue: T?

Stores the last value that was updated to the GPU, is used to only update the value to the GPU if it was changed.

Inheritors

Link copied to clipboard