Baltor Get started

Gallery / Godot shaders

Velvet lighting with grazing sheen

In your harnessGodot shaderMIT

Velvet and plush fabric with a custom light function: a dark, soft diffuse core and a bright sheen that appears where the surface turns away from the viewer and catches the light, plus back-scatter toward the light.

Render of Velvet lighting with grazing sheen
The render its check recorded in Godot 4.7.2, 256 by 256 pixels.

What it takes and gives

Shader type
spatial
Parameters
core_color (vec4 = 0.35, 0.03, 0.12, 1), sheen_color (vec4 = 1, 0.55, 0.7, 1), sheen_power (float = 2.2), sheen_strength (float = 1.2), back_scatter (float = 0.5), diffuse_softness (float = 0.5), fiber_noise (float = 0.15)
Result
Deep raspberry velvet shapes with pink, glowing edges where the surface turns away.
Renderers
compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
Placement
res://baltor/godot_shaders/velvet_sheen/

Limits. Empirical lighting, not a microfibre model; not energy conserving. Sheen also appears on surfaces facing away from the light at grazing angles through the back-scatter term. Environment light adds a plain term.

Details

Kind
Godot shader
Engine
Godot 4.3 or later
Files
11 files, 63.4 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
Grazing-angle sheen lobe, Wrapped diffuse, Back-scatter at the silhouette
Tags
godot shader, spatial, velvet, fabric, sheen, plush, custom light function
Identity
library.supply.creative_originals.38c784158e8a04783f350769.9c7059c985bd9f69
Version
9c7059c985bd9f6975b056512c820d07c9acfd4e013fc3dc7095a67ab8300d7b

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.