instanceAttributes property

  1. @override
InstanceAttributeSchema? get instanceAttributes

The per-instance attributes this material declares, or null when it declares none. A .fmat instance_attributes block declares them, as does a raw ShaderMaterial constructed with instanceAttributes.

The schema widens the instance-rate vertex buffer, so it is part of the pipeline's vertex layout as well as of what an instanced mesh accepts.

Implementation

@override
InstanceAttributeSchema? get instanceAttributes => _instanceAttributes;