mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-20 23:51:53 +00:00
55387bf0fd
- Baking: per-map ray settings (AO, thickness, bent normals), GPU ray-traced baking with CPU fallback (~12x), color map from textured glTF high polys - Files: Alembic (Ogawa) and FBX 6 import, per-tile UDIM resolution, converting a set to UV tiles, project templates, preserving painted strokes on mesh reimport - UI: translations (French, German, Spanish, Portuguese, Italian, Japanese, Chinese, Korean) with a live language picker and CJK fonts, closed panels reopen where they were, viewport texture resolution setting, frame-budgeted scene sync for 8K sets - Web: loading screen, WebGL2 notice, app-captured shortcuts, touch navigation Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 lines
938 B
Rust
29 lines
938 B
Rust
//! # texturecraft-geom
|
|
//!
|
|
//! Geometry for TextureCraft: the [`Mesh`] type with normals and MikkTSpace tangents, built-in
|
|
//! [`primitives`] (material ball, sphere, cube, …), a [`Bvh`] for ray casts and box queries,
|
|
//! the UV-space [`UvGBuffer`] that maps texels to surface points, and the [`OrbitCamera`].
|
|
#![forbid(unsafe_code)]
|
|
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
|
|
|
|
pub mod bvh;
|
|
pub mod camera;
|
|
pub mod gbuffer;
|
|
pub mod mesh;
|
|
pub mod primitives;
|
|
pub mod unwrap;
|
|
|
|
pub use bvh::{Bvh, Hit};
|
|
pub use camera::{OrbitCamera, Ray};
|
|
pub use gbuffer::{NO_TRI, Surface, UvGBuffer, surface_at};
|
|
pub use glam;
|
|
pub use mesh::{BaseColor, MAX_TRIANGLES, Mesh, SubMesh};
|
|
|
|
#[derive(Debug, thiserror::Error, Clone, PartialEq)]
|
|
pub enum GeomError {
|
|
#[error("invalid mesh: {0}")]
|
|
Invalid(String),
|
|
}
|
|
|
|
pub type Result<T> = std::result::Result<T, GeomError>;
|