Skip to main content

HEIGHT_CENTER_SCALE

Constant HEIGHT_CENTER_SCALE 

Source
pub const HEIGHT_CENTER_SCALE: f32 = 2.4;
Expand description

The displacement shader maps a normalized height h to a centered offset (h - 0.5) * HEIGHT_CENTER_SCALE. Keep in sync with displace in ChunkRealize.slang (and ChunkTileBake / TileViewer / ScatterPlace).