Skip to content

Latest commit

 

History

History
45 lines (26 loc) · 1.55 KB

File metadata and controls

45 lines (26 loc) · 1.55 KB

Simple Meshes

Tags

core, testing, written

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

Screenshot

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:

triangle

Legal

© 2017, Public. CC0 1.0 Universal

Assembled by modelmetadata