Files
texturecraft/crates/bake/Cargo.toml
RebornimandClaude Opus 5.5 bced280aa1 Bake: curvature from short rays around each texel, on the GPU when there is one
Replace the per-vertex mesh curvature with short ray rings around each
texel, so triangle size no longer decides the result: walls beside the
point (concave), hard edges (convex), the spread of the smooth normals and
true curvature where shading and faces agree. A high poly uses a small
true-curvature radius, and with match by mesh name a part only reads
itself. Rays go through RayScene::closest in bounded chunks, so they run
on the GPU tracer when there is one. Ray is laid out as the shader reads
it and uploads without a copy. Output stays 0..1 with 0.5 flat;
curvatureStrength and curvature_from_normal keep their meaning.
Clean-room implementation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 07:02:23 +00:00

18 lines
603 B
TOML

[package]
name = "texturecraft-bake"
description = "TextureCraft mesh-map baking: high-poly transfer (cage, match by name) of normal, height, AO, bent normals, curvature, thickness, ID, opacity, color, position and world-space maps"
version.workspace = true
edition.workspace = true
license.workspace = true
[lints]
workspace = true
[dependencies]
texturecraft-core = { workspace = true }
texturecraft-geom = { workspace = true }
texturecraft-texel = { workspace = true }
bytemuck = { workspace = true, features = ["extern_crate_alloc"] }
rayon = { workspace = true }
thiserror = { workspace = true }