Skip to main content

Module material_presets_v4

Module material_presets_v4 

Source
Expand description

Game-ready materials built only from general nodes (texture coordinates, noise, Voronoi, bricks, maths, ramps, mixing and bump), so every step can be opened and changed in the node editor. They go to the Game Ready folder of the material library; marble is built here too.

let all = kvas_engine::material_presets_v4::library();
assert!(all.len() >= 30);
assert!(all.iter().all(|p| kvas_engine::material_graph::to_wgsl(&p.graph).is_ok()));

Functionsยง

library
Every material of this file.
marble
Marble from general nodes: world coordinates projected on a direction, bent by fractal noise, turned into thin veins by |sin|, coloured by a ramp, with cloudy variation and slight relief.