glslParameter
inline fun <T> glslParameter(code: String, libraries: List<GlslLibrary> = emptyList(), parameters: StyleParameters.() -> Unit = {}): GlslParameter(source)
A parameter of type T computed by GLSL code, an expression or a function body with return, that can call the functions of libraries. parameters sets the parameters the code reads.
parameter("amount", glslParameter<Double>("0.5 + 0.5 * sin(p_time + c_boundsPosition.x * 10.0)") {
parameter("time", seconds)
})Content copied to clipboard