Snowline Pass: Alpine Mountains and Pine Forest to Walk, with a Mountain Builder
- ..
- .metadata17 B
- README.md1.2 KB
- preview.png29.7 KB
- properties.yaml2.3 KB
- shader.wgsl9.1 KB
README.md
alpineSnowCap
Rock with snow lying where snow would lie: full cover on flat tops, thinning over the shoulders, none on steep or overhanging faces, because cover follows the surface's world normal. The rock's height map fills its hollows first and a slow noise breaks the snow line, so it never reads as a straight cut. Both layers are projected from three sides in the object's own space in metres (the technique of stoneMaterials' stoneTriplanar), so boulders, outcrops and cliff pieces need no UVs and keep their texture when moved, turned or scaled, and the snow stays on top whichever way the boulder is turned.
Used by alpineMaterials' snowDustedRock (lichen granite under fine powder snow). Properties: snow_amount (0 bare rock … 1 snow down to ~65° faces), snow_soft (width of the snow line), height_bias, breakup and breakup_scale (noise on the line, metres), tile_size / snow_tile_size (metres per repeat), and flatten / posterise for painted and toon looks. Masks use the engine's terrain layout (R metallic, G occlusion, B height, A smoothness). A surface() body, so the engine lights it and the albedo, roughness and normal views read real values.