All files / engine/Source/Shaders/Builtin/Functions maximumComponent.js

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24                                               
//This file is automatically rebuilt by the Cesium build process.
export default "/**\n\
 * Find the maximum component of a vector.\n\
 *\n\
 * @name czm_maximumComponent\n\
 * @glslFunction\n\
 *\n\
 * @param {vec2|vec3|vec4} v The input vector.\n\
 * @returns {float} The value of the largest component.\n\
 */\n\
float czm_maximumComponent(vec2 v)\n\
{\n\
    return max(v.x, v.y);\n\
}\n\
float czm_maximumComponent(vec3 v)\n\
{\n\
    return max(max(v.x, v.y), v.z);\n\
}\n\
float czm_maximumComponent(vec4 v)\n\
{\n\
    return max(max(max(v.x, v.y), v.z), v.w);\n\
}\n\
";