Skip to main content

Module model

Module model 

Source
Expand description

3D models: vertices, materials, meshes, and GPU-uploadable data.

This module provides types for loading and managing 3D models:

  • ModelVertex holds position, normals, tangents, and texture coordinates
  • Material is the material with diffuse and normal textures and samplers
  • Mesh is a single mesh (vertices, indices, material)
  • Model is a collection of meshes with shared materials

Structs§

Material
Mesh
Model
ModelVertex
A 3D model vertex with position, texture coordinates, and normal/tangent data.

Traits§

DrawLight
DrawModel
Vertex
Trait for types that describe their GPU vertex layout.