Skip to main content

wgame_gfx_3d/
lib.rs

1//! 3D primitives and lighting using the shared mesh renderer.
2//!
3//! Geometry, materials, scenes, cameras, textures, transforms and depth remain
4//! shared with 2D. This crate supplies surface-lighting equations and 3D geometry.
5//! [`Lighting`] adds ambient and directional diffuse/specular lighting, with
6//! optional tangent-space or object-space normal maps and masked paint.
7//! Unlit shapes can share the same scene.
8#![forbid(unsafe_code)]
9mod lighting;
10mod normals;
11mod primitives;
12pub use lighting::*;
13pub use normals::*;
14pub use primitives::{Shapes3d, cylinder_mesh};