Sampler2D

@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Sampler2D(val name: String, val size: Int = -1)

Marks a uniform sampler2D variable property in ShaderParams-annotated class.

Supports properties of types:

  • textures: Texture,

  • types with iterator(): Iterator<Texture> method (e.g. Array<Texture>, Iterable<Texture>, etc.).

Since

v1.2.0

See also

Properties

Link copied to clipboard

Uniform variable name, as defined in the shader.

Link copied to clipboard
val size: Int

Number of textures returned by the iterator.