Skip to content

data lighting model

LD edited this page Sep 25, 2020 · 3 revisions

Lighting model defines the type of shading to apply on the object.

lambert-phong

The universal lambert diffuse model with optional blinn-phong specular model.

  • type: lambert-phong

Oren-Nayar

Diffuse model for object with rough surface, with optional blinn-phong specular model.

  • type : oren-nayar

Parameters in appearance:

  • roughness : Roughness value of the surface (0: perfectly smooth, equivalent to Lambert)

Lunar-Lambert

Legacy Lunar Lambert shading from Celestia to be used on moons and asteroids

  • type : lunar-lambert

Parameters in appearance:

  • lunar-lambert: Strength of the lunar roughness effect (0: perfectly smooth, equivalent to Lambert)

Flat

Flat shading for emissive objects.

  • type : flat

PBR

Physically based rendering shader, follows glTF specification.

  • type : pbr

Custom

Custom shader code.

  • type : custom

See custom shader modules for the parameters.