textureCube.js 561 B

123456789101112131415161718
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "/**\n\
  3. * A wrapper around the texture (WebGL2) / textureCube (WebGL1)\n\
  4. * function to allow for WebGL 1 support.\n\
  5. * \n\
  6. * @name czm_textureCube\n\
  7. * @glslFunction\n\
  8. *\n\
  9. * @param {samplerCube} sampler The sampler.\n\
  10. * @param {vec3} p The coordinates to sample the texture at.\n\
  11. */\n\
  12. vec4 czm_textureCube(samplerCube sampler, vec3 p) {\n\
  13. #if __VERSION__ == 300\n\
  14. return texture(sampler, p);\n\
  15. #else \n\
  16. return textureCube(sampler, p);\n\
  17. #endif\n\
  18. }";