tangentToEyeSpaceMatrix.js 436 B

1234567891011
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "mat3 czm_tangentToEyeSpaceMatrix(vec3 normalEC, vec3 tangentEC, vec3 bitangentEC)\n\
  3. {\n\
  4. vec3 normal = normalize(normalEC);\n\
  5. vec3 tangent = normalize(tangentEC);\n\
  6. vec3 bitangent = normalize(bitangentEC);\n\
  7. return mat3(tangent.x , tangent.y , tangent.z,\n\
  8. bitangent.x, bitangent.y, bitangent.z,\n\
  9. normal.x , normal.y , normal.z);\n\
  10. }\n\
  11. ";