Uniform1F

class Uniform1F(shader: Shader, name: String, source: () -> Float) : Uniform<Float>

Constructors

Link copied to clipboard
fun Uniform1F(shader: Shader, name: String, source: () -> Float)

Functions

Link copied to clipboard
open override 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
open override var lastValue: Float? = null

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