struct new in Git master
Per-draw uniform for 3D mesh visualizer shaders.
Together with the generic TransformationUniform3D contains parameters that are specific to each draw call. Material-related properties are expected to be shared among multiple draw calls and thus are provided in a separate MeshVisualizerMaterialUniform structure, referenced by materialId.
Provided to allow the use of method chaining for populating a structure in a single expression, otherwise equivalent to accessing the fields directly. Also guaranteed to provide backwards compatibility when packing of the actual fields changes.
Shaders:: MeshVisualizerDrawUniform3D:: materialId
References a particular material from a MeshVisualizerMaterialUniform array. Useful when an UBO with more than one material is supplied or in a multi-draw scenario. Should be less than the material count passed to MeshVisualizerGL2D / MeshVisualizerGL3D constructor. Default value is
0, meaning the first material gets used.