TexturePaint

class TexturePaint(texture: ColorBuffer) : SourcePreset(source)

The colors of texture, read at texture coordinates: 0..1 covers the texture once, the wrap mode of the texture decides what lies beyond, set it to repeat to tile the texture. The texture holds premultiplied colors, as render targets that are drawn to do, the colors are read without the premultiplication. Replacing the texture does not compile another shader.

Constructors

Link copied to clipboard
constructor(texture: ColorBuffer)

Properties

Link copied to clipboard
open override val contract: GlslContract

the signature of the dynamic parameter of this preset

Link copied to clipboard
open override val dynamicParameter: GlslFunction
Link copied to clipboard
var texture: ColorBuffer

the texture that is read

Functions

Link copied to clipboard

true when this preset can read the values of fxContextLibrary, also through the presets in its slots, so that it changes over time even when nothing else does, see DynamicParameter.readsFxContext