specularContrib

specularContrib

Shortcuts:
  • sc
Keywords:
  • ggx
  • lighting
  • material
  • modularmat
  • phong
  • shading
  • specular
material
specularContrib
RayTK
v0.40

A material element that provides specular light contribution.

Parameters

Name Description Regular Handling Read-Only Handling
Color Runtime Baked
Level Runtime Baked
Method

The type of specular shading to use. Different methods support different combinations of the other parameters.

Runtime Semi-Baked
  • 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.

Semi-Baked Semi-Baked
Enable Shadow

Whether to apply the shadow to the color/level produced by this element.

Baked Baked
Enable
Use Surface Color Semi-Baked Semi-Baked

Inputs

  • Shininess: (optional)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: MaterialContext
    • Return Types: float
  • Roughness: (optional)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: MaterialContext
    • Return Types: float
    • Supports Variables From Inputs: shininessField
  • Fresnel: (optional)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: MaterialContext
    • Return Types: float
    • Supports Variables From Inputs: shininessField roughnessField
  • Color: (optional)
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: MaterialContext
    • Return Types: vec4
    • Supports Variables From Inputs: shininessField roughnessField fresnelField

Images