DynamicParameter

sealed class DynamicParameter(source)

A parameter of a shade style whose value is resolved in the shader: read from a texture, computed by GLSL code, or a GLSL function. Shade style code reads it like any parameter, as p_<name>, and calls a function as p_<name>(arguments).

The code of a GlslParameter or GlslFunction can call the functions of the preamble of the style and of the GlslLibrarys it uses, the preamble can read dynamic parameters and call GLSL functions.

Changing the texture of a TextureParameter or the values of the parameters of a GlslParameter or GlslFunction does not recompile shaders, changing code or coordinates does.

See also

Inheritors

Properties

Link copied to clipboard
abstract val glslType: String

the GLSL type of the value

Link copied to clipboard

the GLSL libraries the code of the parameter uses