materialVertexOutputs top-level constant

List<MaterialInput> const materialVertexOutputs

What a vertex block may write, with out name = value; — version 2.

position is the vertex in the mesh's own space, which the model transform then carries into the world; world is where it ends up, the transform already applied; one or the other, not both. normal is the world-space normal the surface is lit by. What the block does not write keeps the engine's own answer.

Implementation

const List<MaterialInput> materialVertexOutputs = <MaterialInput>[
  MaterialInput('position', ExpressionType.vec3, 'f3d_out_position', since: 2),
  MaterialInput('world', ExpressionType.vec3, 'f3d_out_world', since: 2),
  MaterialInput('normal', ExpressionType.vec3, 'f3d_out_normal', since: 2),
];