Skip to content

Material properties

Timur Gafarov edited this page Jan 21, 2025 · 4 revisions

baseColorFactor/baseColorTexture - also called diffuse color or albedo. Defines a color of a surface. Color values assumed to be in sRGB. The alpha channel defines surface transparency for alpha-blended and alpha-clipped materials.

emissionFactor/emissionTexture - self-illumination color.

emissionEnergy/ - self-illumination brightness.

roughnessFactor - roughness of a surface.

metallicFactor - metallicity of a surface.

roughnessMetallicTexture - combined roughness-metallic texture. Roughness (linear) should be in G channel, metallicity (linear) in B channel, as per glTF 2.0 specification. R and A channels are ingnored, but preserved for future use.

normalFactor/normalTexture - per-pixel normal of a surface in tangent space.

heightFactor/heightTexture - per-pixel height of a surface. When using parallax mapping, it is used to displace texture coordinates and give a surface more bumpy look.

parallax - parallax mapping method:

  • ParallaxNone (0) - parallax mapping turned off
  • ParallaxSimple (1) - simple parallax mapping based on eye vector
  • ParallaxOcclusionMapping (2) - parallax occlusion mapping