phongMat

deprecated
material
phongMat
RayTK
v0.36

Material that uses phong shading.

Deprecated in favor of using Phong mode in specularContrib in a modularMat.

Parameters

  • Enable:
  • Ambient Color: Base color applied to the surface regardless of lights.
  • Diffuse Color: Color reflected by matte surfaces.
  • Specular Color: Color reflected by glossy surfaces.
  • Shine: Specular exponent, which adjusts the light curve of specular highlights.
  • Enable Shadow: Whether to use shadows. When enabled, if the *Shadow Definition* input is provided, that will be used. Otherwise a default shadow function will be used.

Inputs

  • SDF: (required)
    • Coordinate Types: vec3
    • Context Types: Context
    • Return Types: Sdf