Sha256: 76e31e0014542cdcbc134ffa80e81203645bd7943a4abf48b01a3af6a035d4bd
Contents?: true
Size: 1.15 KB
Versions: 3
Compression:
Stored size: 1.15 KB
Contents
//This file is automatically rebuilt by the Cesium build process. /*global define*/ define(function() { "use strict"; return "/**\n\ * Creates a matrix that transforms vectors from tangent space to eye space.\n\ *\n\ * @name czm_tangentToEyeSpaceMatrix\n\ * @glslFunction\n\ * \n\ * @param {vec3} normalEC The normal vector in eye coordinates.\n\ * @param {vec3} tangentEC The tangent vector in eye coordinates.\n\ * @param {vec3} binormalEC The binormal vector in eye coordinates.\n\ *\n\ * @returns {mat3} The matrix that transforms from tangent space to eye space.\n\ *\n\ * @example\n\ * mat3 tangentToEye = czm_tangentToEyeSpaceMatrix(normalEC, tangentEC, binormalEC);\n\ * vec3 normal = tangentToEye * texture2D(normalMap, st).xyz;\n\ */\n\ mat3 czm_tangentToEyeSpaceMatrix(vec3 normalEC, vec3 tangentEC, vec3 binormalEC)\n\ {\n\ vec3 normal = normalize(normalEC);\n\ vec3 tangent = normalize(tangentEC);\n\ vec3 binormal = normalize(binormalEC);\n\ return mat3(tangent.x, tangent.y, tangent.z,\n\ binormal.x, binormal.y, binormal.z,\n\ normal.x, normal.y, normal.z);\n\ }\n\ "; });
Version data entries
3 entries across 3 versions & 1 rubygems