Files
texturecraft/crates/compose/src/lib.rs
T
Rebornim 815bdb2e47 Generators: 3D Distance, white around a point fading over a radius
A new kind with the reference's controls: Position X, Y and Z across the mesh's bounds (scaled evenly, the longest side spanning 0 to 1, as the reference's position map is), Radius, Offset, Contrast and Invert. The value falls from 1 at the point to 0 at the radius and is then slid through by a histogram scan (offset 0 all black, 1 all white; contrast 1 a hard edge); it matches the reference within 0.001 on every captured setting. It reads its Position input like Position does, has no earlier model or global controls (both refused), and swapping onto it drops the earlier offset. Commands only: the picker leaves it out until its panel is designed.
2026-11-24 12:09:41 +00:00

76 lines
2.2 KiB
Rust

//! # texturecraft-compose
//!
//! The CPU layer-stack evaluator: [`eval::composite_tiles`] turns a texture set's layers, masks,
//! fills and painted pixels into one image per channel, tile by tile in parallel, including the
//! live preview of a stroke being drawn. [`display`] converts composited tiles into the texture
//! formats the viewport samples; [`pattern`] evaluates procedurals through projections.
#![forbid(unsafe_code)]
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
pub mod axis_frame;
mod baked_maps;
pub mod below;
mod curvature_size_level;
pub mod curvature_sizes;
pub mod display;
mod distance_envelope;
mod effect_histogram;
pub mod environment_sh;
pub mod environment_sky;
pub mod eval;
mod fabric;
pub mod fill_copies;
pub mod fill_copy;
mod fill_depth;
mod fill_place;
pub mod frame_placement;
mod fur_lock;
mod generator_maps;
mod held_fields;
mod histogram_scan;
mod image_identity;
mod mask_gray;
mod micro_details;
pub mod mip_level;
mod organic;
pub mod pattern;
mod pattern_context;
pub mod projector_cover;
pub mod projector_depth;
mod projector_depth_cache;
pub mod projector_view;
mod sections;
mod shape_distance;
mod slope_texel;
mod soft_box;
pub mod solo;
pub mod store;
mod texture_layer;
mod three_d_distance;
pub mod thumb;
pub mod tile_length;
mod tile_pattern;
mod tile_random_stream;
mod timber;
pub mod warp;
mod warp_source_sample;
mod warp_texel;
mod wear;
mod wear_inputs;
mod wear_scan;
pub use below::{BelowCache, StackKey};
pub use display::{DisplayKind, kinds_for, tile_bytes};
pub use effect_histogram::EffectHistogram;
pub use eval::{
BLOCK, Composite, Inputs, MASK_CHANNEL, PaintTarget, Stencil, StrokePreview, all_tiles, compare_histograms, composite_tiles, composite_tiles_cached,
composite_tiles_with_projectors, covered_tiles, effect_histogram, flatten_layer, mask_at, mask_image, mask_texels, mask_values, pad_tiles,
stack_reads_neighbours,
};
pub use mask_gray::MaskGray;
pub use pattern_context::PatternContext;
pub use projector_depth_cache::ProjectorDepthCache;
pub use solo::solo_project;
pub use store::{BakedMaps, ImageRes, ImageStore, PixelStore};
pub use thumb::{THUMB_TEXELS, ThumbImage, ThumbTarget};