@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Uniform(val name: String)

Marks a uniform variable property in ShaderParams-annotated class.

Supports properties of types:

  • numbers: Boolean (since v1.1.0), Int, Float,

  • vectors: Vec2, Vec3, Vec4,

  • matrices: Mat2, Mat3, Mat4,

  • arrays of these types.

Since v1.2.0, no longer supports properties of type Texture. Use @Sampler2D instead.

See also


Link copied to clipboard
fun Uniform(name: String)


Link copied to clipboard
val name: String

Uniform variable name, as defined in the shader.