โ† All examples

godot shaders

Painted metal with chips, rust and streaks

Weathered painted metal in layers: paint chips away in noisy patches to show bare metal, rust grows around the chips, and rust streaks run downward in world space below them.

Recorded render of Painted metal with chips, rust and streaks

What this component contains

  • ATTRIBUTION.md
  • LICENSE
  • README.md
  • component.json
  • demo.tscn
  • inspect_shader.py
  • material.tres
  • preview.png
  • rust_paint_chipping.gdshader
  • test_package.py
  • verification/native.json

How it works

Shader type
spatial
Parameters
paint_color (vec4 = 0.2, 0.42, 0.35, 1), metal_color (vec4 = 0.62, 0.62, 0.64, 1), rust_color (vec4 = 0.48, 0.22, 0.08, 1), rust_dark (vec4 = 0.22, 0.1, 0.05, 1), scale (float = 4), chipping (float = 0.35), rust_spread (float = 0.12), streak_amount (float = 0.5) and 1 more
Result
Green painted shapes with silver chipped patches ringed by rust and faint rust runs.
Renderers
compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
Placement
res://baltor/godot_shaders/rust_paint_chipping/

Recorded checks

godot 4.7.2.stable.official.ed1daf0bf

  • contract_static
  • engine_run
  • engine_log_clean
  • shader_in_scene
  • capture_written
  • render_not_uniform
  • shader_changes_pixels

Limits to consider

Wear is placed by noise, not by edges or cavities, so it does not favour corners. World-space masks slide over moving objects; switch to object space for props that move. No relief between paint and metal.