Functions

Slab:draw(...) Draw the slab to invoke processing
Slab.file GETSET The shader file
Slab:param(name, ...) Set a parameter
Slab:params() Get an iterator over the parameters
Slab:texture([idx]) Get an output texture

Functions

Slab:draw(...)

Draw the slab to invoke processing

Parameters:

... Either a table or unpacked list of Textures and Slab
Slab.file GETSET

The shader file

Slab:param(name, ...)

Set a parameter

Parameters:

name The parameter name
... The parameter values as a table or unpacked
Slab:params()

Get an iterator over the parameters

Return:

  • The iterator function
Slab:texture([idx])

Get an output texture

Parameters:

[idx] The Texture idx (default 0)

Return:

  • The Texture