Skip to main content

normalize_paint_weights

Function normalize_paint_weights 

Source
pub fn normalize_paint_weights(
    layers: &mut [TerrainLayer],
    width: usize,
    height: usize,
)
Expand description

Normalize paint weights across layers so they sum to 1