Uniform

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

Marks a uniform variable property in ShaderParams-annotated class.

Supports properties of types:

  • numbers: Int, Float,

  • vectors: Vec2, Vec3, Vec4,

  • matrices: Mat2, Mat3, Mat4,

  • arrays of all above types,

  • textures: Texture.

Constructors

Uniform
Link copied to clipboard
common
fun Uniform(name: String)

Properties

name
Link copied to clipboard
common
val name: String
Uniform variable name, as defined in the shader.