getSpecular.js 371 B

12345678
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "float czm_getSpecular(vec3 lightDirectionEC, vec3 toEyeEC, vec3 normalEC, float shininess)\n\
  3. {\n\
  4. vec3 toReflectedLight = reflect(-lightDirectionEC, normalEC);\n\
  5. float specular = max(dot(toReflectedLight, toEyeEC), 0.0);\n\
  6. return pow(specular, max(shininess, czm_epsilon2));\n\
  7. }\n\
  8. ";