Skip to main content

Albedo

Albedo defines the base color of a material - the color of light that is diffusely reflected from the surface.

Parameters

ParameterTypeDefaultRange
albedovec3[1.0, 1.0, 1.0][0.0, 1.0] per channel
albedoTexturetexture2d_refnull-

Parameter Details

albedo

Type: vec3 Default: [1.0, 1.0, 1.0] (white) Range: [0.0, 1.0] per RGB channel

Albedo color multiplier. Multiplied with albedo texture (if present) to produce final base color. Acts as tint when textured, or solid color when not.

albedoTexture

Type: texture2d_ref Default: null Format: RGBA, sRGB color space (auto-converted to linear)

Base color texture defining spatially-varying surface color.

  • RGB: Color data
  • A: Opacity multiplier when transparency enabled

Shader Implementation

// sRGB to linear conversion applied automatically
albedo_final = sRGBToLinear(texture.rgb) * albedo_parameter

Channel Usage:

  • RGB: Color components (sRGB space)
  • A: Opacity multiplier when MATERIAL_TRANSPARENT is enabled