Procgen Effects Showcase
- ..
- .metadata273 B
- README.md1.3 KB
- preview.png26.7 KB
- properties.yaml233 B
- shader.wgsl1.3 KB
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
| Property | Type | Default | Meaning |
|---|---|---|---|
center_x | float | 0.4 | World X of the scorch centre (range -1000 to 1000). |
center_z | float | 8.0 | World Z of the scorch centre (range -1000 to 1000). |
scorch_radius | float | 9.0 | Distance 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). |