Module gltf_json::extensions::texture

source ·
Expand description

Contains Texture, Sampler, and other related data structures.

Structs§

  • Reference to a Texture.
  • Texture sampler properties for filtering and wrapping modes.
  • A texture and its sampler.
  • Many techniques can be used to optimize resource usage for a 3d scene. Chief among them is the ability to minimize the number of textures the GPU must load. To achieve this, many engines encourage packing many objects’ low-resolution textures into a single large texture atlas. The region of the resulting atlas that corresponds with each object is then defined by vertical and horizontal offsets, and the width and height of the region.
  • The offset of the UV coordinate origin as a factor of the texture dimensions.
  • Rotate the UVs by this many radians counter-clockwise around the origin. This is equivalent to a similar rotation of the image clockwise.
  • The scale factor applied to the components of the UV coordinates.