Terrain material blending by slope and height
In your harnessBlender toolMIT
Build a landscape node material that puts rock on slopes steeper than a set angle, snow above a ragged world-height line but only where the ground is flat enough, and grass elsewhere, all in world space. Use it on terrains, mountains and dioramas.

What it takes and gives
- Operator
- baltor.material_terrain_slope_height
- Parameters
- material_name, grass_color, rock_color, snow_color, rock_slope, slope_blend, snow_height, snow_blend and 3 more
- Result
- One material with a node tree; assigned to the active object.
- Blender
- 4.2 or later
- Axes
- Blender Z up, -Y forward
- Units
- metres
Limits. Three flat colours with roughness only; no texture detail per layer, no displacement and no erosion or flow information. World space inputs mean the blend changes when the object is rotated, by design. Shading normals from smooth shading soften the slope test on coarse meshes. Rendered here with Cycles CPU only. Verified in Blender 5.2.1; written for the 4.2 API.
Details
- Kind
- Blender tool
- Engine
- Blender 4.2 or later
- Files
- 11 files, 104.6 KB
- Licence
- MIT
- Declared effects
- runs commands
- Checked with
- Blender 5.2.1, background (Cycles CPU for previews)
- Checks
- addon install and enable, operator runs with defaults, blender data matches core, addon disable unregisters, script mode runs, clean reopen addon file, clean reopen script file, gltf separate export, engine output clean
- Techniques
- Slope from the Z component of the world normal (cosine of the slope angle), Snow line from world height shifted by noise, Flatness mask to keep snow off cliffs
- Tags
- blender, material, shader nodes, terrain, landscape, slope, snow
- Identity
library.supply.creative_originals.f581df836192943ba67e32ef.29ea717969ad3261- Version
29ea717969ad32612af140e220c338b93e067586ea451d8e23fd5874409c94a5
The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.
Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.
