czm_phong

czm_phong

Computes a color using the Phong lighting model.
Example
vec3 positionToEyeEC = // ...
czm_material material = // ...
gl_FragColor = czm_phong(normalize(positionToEyeEC), material);
See:
  • czm_getMaterial