Files
wsg/docs/user/meshes
Jérôme Bousquié e5f3636b42 examples: apply real texture assets to multi-mesh examples
- meshes/cube: procedural checkerboard -> uv_texture.jpg (8x8 UV grid)
- meshes/pbr: floor -> ground.jpeg, bump cube -> cave.jpg + caveNormal.jpg
  (normal map pre-encoded via sRGB OETF to cancel the GPU sRGB decode)
- lights/shadow: ground -> ground.jpeg, cube -> uv_texture.jpg
- effects/demo: ground -> ground.jpeg, cube -> uv_texture.jpg
- effects/fog: ground -> ground.jpeg (tiled 80x80), cubes -> stonewall.jpg
- effects/dof: ground -> ground.jpeg, cubes -> uv_texture.jpg
- cameras/culling: shared cube mesh -> uv_texture.jpg
- add lib/examples/assets/textures/ (19 assets, 6.5 MB)
- document assets + usage in examples READMEs, docs/user/examples.md,
  docs/user/meshes/materials.md (CARGO_MANIFEST_DIR pattern, sRGB caveat)
2026-09-26 10:49:13 +02:00
..
2026-09-25 20:06:10 +02:00
2026-09-25 20:06:10 +02:00
2026-09-25 20:06:10 +02:00

Meshes — user documentation

The geometry side of the scene: where the geometry comes from, how meshes and entities are organized, and how objects look.

Page Topic
Meshes The three levels Geometry → Mesh → Entity; procedural primitives, custom geometry, Transform, mesh sharing
Geometry sources The wsg::mesh module: feature-gated procedural generators + file import (OBJ, glTF stub)
Materials & textures The standard shader, unlit mode, diffuse textures

Example folder: lib/examples/meshes/ (simple, cube, pbr, import, manual).