Skip to main content

PER_VERTEX_PARAMS

Constant PER_VERTEX_PARAMS 

Source
pub const PER_VERTEX_PARAMS: &[ParamSpec];
Expand description

The nine outputs a [per_vertex] table may bind, in the order this scene stores them. Keep in step with PER_VERTEX_DEFAULTS and WarpMeshScene::set_per_vertex.

The same nine names are ordinary scalar PARAMS as well, and that is the design: a scalar sets the output for the whole mesh, and a [per_vertex] binding of the same name replaces it vertex by vertex. A preset therefore starts from one shared transform and opts into a spatially-varying one output at a time.