Skip to main content

load_static_material

Function load_static_material 

Source
pub fn load_static_material(name: &str, filename: &str)
Expand description

Loads a static (single-texture, non-RGB-tintable) matcap material from disk.

The same texture is used for all 4 matcap channels. Static materials cannot be tinted with per-surface RGB colors.

ยงExample

polyscope_rs::load_static_material("stone", "assets/stone.jpg");