Pre-1.0: signatures are not frozen. Generated from rustdoc JSON of the compiled crate; rustdoc JSON format version 60. Only public items are listed.
The core.noise.*.v1 graph nodes: noise as typed, pure data kernels.
- Samplers (
Scalarout, always0..=1;Domain::Pure): feed the output into anyScalarinput (core.scalar.multiply,core.color.mix'st, an opacity, a length viacore.length.scale) to drive positions, colours and opacity.x/yare in noise space: multiply screen coordinates yourself or use thefrequencyport (features per unit). - Time-animated samplers take a
time: Secondsport. Wirecore.clock.v1into it and the graph is clock-tainted exactly like any other clock consumer (the host must supply a clock; without one the evaluation is refused withClockUnavailable). - Surfaces (
Drawingout;Domain::Visual): a noise field through a colour ramp at reduced resolution, an aurora gradient, and film grain.
All kernels are deterministic and bit-identical across platforms
([crate::noise] documents the guarantee). Octave counts are clamped to
1..=12; surface sizes are limited to [crate::noise_surface::MAX_EDGE].
Structs
structaster_blueprint::noise_nodes::NoisePort
pub struct NoisePort { /* see fields */ }One declared input: name, type and optional default.
Public fields
| field | type | |
|---|---|---|
name | &'static str | |
value_type | model::ValueType | |
default | Option<model::Literal> |
Trait implementations: Clone, Debug
Enums
enumaster_blueprint::noise_nodes::NoiseNode
pub enum NoiseNode { Value, Perlin, Simplex, Simplex3, Cellular, Fbm, Ridged, Turbulence, Warp, Animated, AnimatedWarp, Surface, Aurora, Grain }One noise node kind.
Methods
const ALL: [NoiseNode; 14]— Every noise node, in catalog order.fn name(self) -> &'static strfn from_name(name: &str) -> Option<Self>fn output(self) -> ValueType—Drawingfor surfaces,Scalarfor samplers.fn domain(self) -> Domainfn inputs(self) -> Vec<NoisePort>— Declared inputs in port order (this table is also the runtime's check).fn definition(self) -> Definition— The catalog definition.fn evaluate(self, args: &[RuntimeValue]) -> Result<RuntimeValue, Error>— Evaluate against type-admitted inputs in declared port order. A bad shape isError::InvalidGeometry; octaves/gain/lacunarity are clamped.
Variants
ValuePerlinSimplexSimplex3CellularFbmRidgedTurbulenceWarpAnimatedAnimatedWarpSurfaceAuroraGrain
Trait implementations: Clone, Copy, Debug, Eq, PartialEq, StructuralPartialEq
Constants
constaster_blueprint::noise_nodes::ANIMATED
pub const ANIMATED: &strconstaster_blueprint::noise_nodes::ANIMATED_WARP
pub const ANIMATED_WARP: &strconstaster_blueprint::noise_nodes::AURORA
pub const AURORA: &strconstaster_blueprint::noise_nodes::CELLULAR
pub const CELLULAR: &strconstaster_blueprint::noise_nodes::FBM
pub const FBM: &strconstaster_blueprint::noise_nodes::GRAIN
pub const GRAIN: &strconstaster_blueprint::noise_nodes::PERLIN
pub const PERLIN: &strconstaster_blueprint::noise_nodes::RIDGED
pub const RIDGED: &strconstaster_blueprint::noise_nodes::SIMPLEX
pub const SIMPLEX: &strconstaster_blueprint::noise_nodes::SIMPLEX3
pub const SIMPLEX3: &strconstaster_blueprint::noise_nodes::SURFACE
pub const SURFACE: &strconstaster_blueprint::noise_nodes::TURBULENCE
pub const TURBULENCE: &strconstaster_blueprint::noise_nodes::VALUE
pub const VALUE: &strconstaster_blueprint::noise_nodes::WARP
pub const WARP: &str