Skip to main content

Module material_presets

Module material_presets 

Source
Expand description

Built-in procedural materials. Every preset is an ordinary node graph (open it in the node editor and change anything). The editor installs them into assets/materials/library/ of every project.

The files are generated: cargo run -p kvas_engine --example gen_material_library.

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

Structs§

Preset
One shipped material.

Functions§

library
Every shipped material.