Albedo
Albedo defines the base color of a material - the color of light that is diffusely reflected from the surface.
Parameters
| Parameter | Type | Default | Range |
|---|---|---|---|
albedo | vec3 | [1.0, 1.0, 1.0] | [0.0, 1.0] per channel |
albedoTexture | texture2d_ref | null | - |
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_TRANSPARENTis enabled