Skip to main content

Sheen

Simulates rim lighting from microscopic fibers catching light at grazing angles. Essential for velvet, satin, and other fabrics.

Requires MATERIAL_SHEEN constant.

Parameters

sheenColor

color

Default:[1,0.8,1]

Color of fabric-like sheen reflection

sheenColorIntensity

float

Default:0

Strength of sheen color effect

sheenColorTexture

texture

Default:White

Texture map for sheen color

sheenRoughness

float

Default:1

Roughness of sheen reflection layer

sheenRoughnessTexture

texture

Default:White

Texture map for sheen roughness

Texture Channel Usage

  • sheenColorTexture: RGB channels for color
  • sheenRoughnessTexture: Green channel (G) for roughness

Example

With sheen
sheenColorIntensity: 1.0

Shader Implementation

// Color with intensity
sheenColor_final = sheenColor * sheenColorIntensity;
sheenColor_final *= texture(sheenColorTexture).rgb;

// Roughness from green channel
sheenRoughness_final = sheenRoughness * texture(sheenRoughnessTexture).g;