constant

fun constant(name: String, value: Int): Material.Builder

Specializes a constant parameter specified in the material definition with a concrete value for this material. Once build() is called, this constant cannot be changed. Will panic if the name doesn't correspond to a constant specified in the material definition, or if the type differs.

Return

This Builder, for chaining calls.

Parameters

name

The name of the constant parameter specified in the material definition

value

The value to use for the constant parameter


See also