backFacing.js 537 B

123456789101112131415
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "/**\n\
  3. * Determines if the fragment is back facing\n\
  4. *\n\
  5. * @name czm_backFacing\n\
  6. * @glslFunction \n\
  7. * \n\
  8. * @returns {bool} <code>true</code> if the fragment is back facing; otherwise, <code>false</code>.\n\
  9. */\n\
  10. bool czm_backFacing()\n\
  11. {\n\
  12. // !gl_FrontFacing doesn't work as expected on Mac/Intel so use the more verbose form instead. See https://github.com/CesiumGS/cesium/pull/8494.\n\
  13. return gl_FrontFacing == false;\n\
  14. }\n\
  15. ";