Skip to main content Link Menu Expand (external link) Document Search Copy Copied
diffuseContrib

diffuseContrib

Shortcuts:
Keywords:
  • diffuse
  • lambert
  • lighting
  • material
  • modularmat
  • oren-nayar
  • shading

A material element that provides diffuse light contribution.

Parameters

  • Color:
  • Level:
  • Method: The type of diffuse shading to use. Different methods support different combinations of the other parameters.
    • Lambert:
    • Oren-Nayar:
  • Roughness:
  • Albedo:
  • Use Color: Whether to produce color or just a brightness value.
  • Use Light Color: Whether to apply the light color to the color produced by this element.
  • Enable Shadow: Whether to apply the shadow to the color/level produced by this element.
  • Use Surface Color:

Inputs

  • Roughness: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: MaterialContext
    • Return Types: float
  • Albedo: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: MaterialContext
    • Return Types: float
  • Color: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: MaterialContext
    • Return Types: float vec4

Images