Baltor Get started

Gallery / Godot shaders

Brushed metal with a Ward anisotropic highlight

In your harnessGodot shaderMIT

Brushed metal with a custom light function: a Ward anisotropic specular stretched along a brushing direction (linear along the tangent or circular around a UV centre) plus fine procedural brush streaks.

Render of Brushed metal with a Ward anisotropic highlight
The render its check recorded in Godot 4.7.2, 256 by 256 pixels.

What it takes and gives

Shader type
spatial
Parameters
metal_color (vec4 = 0.82, 0.83, 0.85, 1), roughness_along (float = 0.08), roughness_across (float = 0.45), circular (bool = no), circle_center_u (float = 0.5), circle_center_v (float = 0.5), streak_density (float = 600), streak_strength (float = 0.25) and 2 more
Use it on
A mesh with UVs and tangents.
Result
Metal with a bright highlight smeared along the brushing, here as rings across a spun disc.
Renderers
compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
Placement
res://baltor/godot_shaders/brushed_metal_anisotropic/

Limits. Ignores environment reflections: only scene lights give specular, so add a light or use Godot's built-in ANISOTROPY output when reflections matter. Ward's model is not energy conserving at grazing angles. Circular brushing needs UVs centred on the disc (the CylinderMesh caps qualify).

Details

Kind
Godot shader
Engine
Godot 4.3 or later
Files
11 files, 72.7 KB
Licence
MIT
Declared effects
reads files, runs commands
Checked with
Godot 4.7.2, opengl3 compatibility (Mesa llvmpipe, Xvfb)
Checks
contract static, engine run, engine log clean, shader in scene, capture written, render not uniform, shader changes pixels
Techniques
Ward anisotropic BRDF (Ward 1992), Fragment-to-light varying for a per-pixel tangent frame, Value noise with quintic interpolation and fractional Brownian motion for brush streaks
Tags
godot shader, spatial, metal, anisotropic, brushed, ward brdf, custom light function
Identity
library.supply.creative_originals.b0a827b7642486287664d935.9d4d90fc240d4b67
Version
9d4d90fc240d4b67ad97e00d451460ad2845916759e3ec59126dce5b62520396

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.