Log inGet started
World

Procgen Effects Showcase

Branchmain
Branchesmain
Commit99ff90d12c

README.md

blast_ground

World-space scorched dirt PBR shader with an old scorch stain at the blast site. Its surface() function samples fx_noise on the world XZ plane: a broad fBm mixes two dark, cool dirt colours, a mid-scale fBm varies brightness and occlusion, a fine gradient noise adds grain, and a fourth fBm draws dry cracks wherever it crosses zero. Inside scorch_radius of the blast centre the dirt blends toward near-black soot (up to 80 percent), with the stain's edge pushed in and out by the mid-scale noise. Roughness is fixed at 0.92 and occlusion runs from 0.85 to 1.0.

The blast_ground material (blast/materials/blast_ground.material) uses it with the centre at x 0.4, z 8.0 and a radius of 9, the point the wall_blast graph detonates at. The ground plane of the fx_blast scene draws with that material.

The shader includes fx_noise with #include "fx_noise".

Properties

PropertyTypeDefaultMeaning
center_xfloat0.4World X of the scorch centre (range -1000 to 1000).
center_zfloat8.0World Z of the scorch centre (range -1000 to 1000).
scorch_radiusfloat9.0Distance from the centre where the stain fades to nothing; the stain is at full strength inside 0.15 of this distance (range 0.1 to 200).