Wrap lighting with subsurface tint and back light
In your harnessGodot shaderMIT
Soft skin and wax look with a custom light function: wrapped diffuse that lets light bleed past the terminator in a warm scatter colour, translucency where light comes from behind, and a soft specular.

What it takes and gives
- Shader type
- spatial
- Parameters
- albedo (vec4 = 0.88, 0.68, 0.58, 1), scatter_color (vec4 = 0.85, 0.2, 0.12, 1), wrap (float = 0.45), scatter_width (float = 0.35), translucency (float = 0.6), translucency_power (float = 4), translucency_distortion (float = 0.25), specular_strength (float = 0.25) and 1 more
- Result
- Peach-coloured shapes lit from behind and the side with a warm red glow along the shadow edge and through the thin capsule.
- Renderers
- compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
- Placement
- res://baltor/godot_shaders/wrap_subsurface_skin/
Limits. An approximation without real thickness: translucency is the same on thick and thin parts unless you scale it per object. Wrap lighting brightens shadowed regions, so cast shadows look softer than the light. Not energy conserving.
Details
- Kind
- Godot shader
- Engine
- Godot 4.3 or later
- Files
- 11 files, 56.1 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
- Wrap lighting ((N.L + w) / (1 + w)), Terminator scatter band tint, View and light direction translucency with normal distortion, Blinn-Phong specular
- Tags
- godot shader, spatial, subsurface, skin, wrap lighting, translucency, custom light function
- Identity
library.supply.creative_originals.32e7268972f819ecef71ac85.478eee671cf75919- Version
478eee671cf75919a686b40631d658ddfe1ae63d5d0f8fdce074f41981772e76
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.

