Uniform

@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 all above types,

  • textures: Texture.

Constructors

Link copied to clipboard
fun Uniform(name: String)

Properties

Link copied to clipboard
val name: String

Uniform variable name, as defined in the shader.