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
- Display in SampleViewer
- Model Directory
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.
The following image shows the data layout of this sample:
© 2017, Public. CC0 1.0 Universal
- javagl for Everything