Skip to content

Latest commit

 

History

History

FeatureIdTexture

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Feature ID Texture

This sample demonstrates usage of the EXT_mesh_features extension for storing feature IDs and properties associated with the surface of a primitive, using a feature ID texture.

The sample contains a glTF asset with a single mesh primitive. The mesh primitive consists of a quad (the unit square), formed by 2 triangles. The vertices in this mesh primitive have the usual POSITION, NORMAL, and TEXCOORD_0 vertex attributes.

Feature IDs

The feature IDs in this example are given with a feature ID texture. The feature ID texture has a size of 16x16 pixels, and defines feature IDs for components of a house.

The example also defines a standard texture that is used for rendering the quad. It is a texture with a size of 256x256 pixels, that shows the feature IDs that are stored in the 16x16 pixel feature ID texture:

Image

Screenshot

Screenshot

Example Sandcastle

This example can be viewed with the common sandcastle code.

License

CC0