material.js 1.1 KB

123456789101112131415161718192021222324
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "/**\n\
  3. * Holds material information that can be used for lighting. Returned by all czm_getMaterial functions.\n\
  4. *\n\
  5. * @name czm_material\n\
  6. * @glslStruct\n\
  7. *\n\
  8. * @property {vec3} diffuse Incoming light that scatters evenly in all directions.\n\
  9. * @property {float} specular Intensity of incoming light reflecting in a single direction.\n\
  10. * @property {float} shininess The sharpness of the specular reflection. Higher values create a smaller, more focused specular highlight.\n\
  11. * @property {vec3} normal Surface's normal in eye coordinates. It is used for effects such as normal mapping. The default is the surface's unmodified normal.\n\
  12. * @property {vec3} emission Light emitted by the material equally in all directions. The default is vec3(0.0), which emits no light.\n\
  13. * @property {float} alpha Alpha of this material. 0.0 is completely transparent; 1.0 is completely opaque.\n\
  14. */\n\
  15. struct czm_material\n\
  16. {\n\
  17. vec3 diffuse;\n\
  18. float specular;\n\
  19. float shininess;\n\
  20. vec3 normal;\n\
  21. vec3 emission;\n\
  22. float alpha;\n\
  23. };\n\
  24. ";