ShaderBlock:read

Returns a variable in the ShaderBlock.

value = ShaderBlock:read(name)

Arguments

NameTypeDescription
namestringThe name of the variable to read.

Returns

NameTypeDescription
value*The value of the variable.

Notes

This function is really slow! Only read back values when you need to.

Vectors and matrices will be returned as (flat) tables.

See also