Simple Meshes
January 30, 2026 · View on GitHub
Tags
Summary
A simple scene with two nodes, both containing the same mesh, namely a mesh with a single mesh.primitive with a single indexed triangle with multiple attributes (positions, normals and texture coordinates), but without a material
Operations
- Display in SampleViewer
- Model Directory
Screenshot

Notes
This is an example showing how the same mesh may be appended to
several nodes, to be rendered multiple times. It also shows
how additional vertex attributes are defined in a mesh.primitive -
namely, attributes for the vertex normals.
Note: The additional vertex normal attribute in this example is not yet used. This may cause a warning to be printed during the validation. The normal attribute will be used in the AdvancedMaterial section of the tutorial.
Data layout
The following image shows the data layout of this sample:

Legal
© 2017, Public. CC0 1.0 Universal
- Marco Hutter (https://github.com/javagl/) for Everything