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

specularContrib

Shortcuts:
Keywords:
  • ggx
  • lighting
  • material
  • modularmat
  • phong
  • shading
  • specular

A material element that provides specular light contribution.

Parameters

  • Color:
  • Level:
  • Method: The type of specular shading to use. Different methods support different combinations of the other parameters.
    • Phong:
    • Blinn-Phong:
    • Beckmann:
    • Cook-Torrance:
    • Gaussian:
    • GGX:
  • Shininess:
  • Roughness:
  • Fresnel:
  • 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

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

Images