//This file is automatically rebuilt by the Cesium build process.
|
export default "/**\n\
|
* Computes distance from a point to a plane.\n\
|
*\n\
|
* @name czm_planeDistance\n\
|
* @glslFunction\n\
|
*\n\
|
* param {vec4} plane A Plane in Hessian Normal Form. See Plane.js\n\
|
* param {vec3} point A point in the same space as the plane.\n\
|
* returns {float} The distance from the point to the plane.\n\
|
*/\n\
|
float czm_planeDistance(vec4 plane, vec3 point) {\n\
|
return (dot(plane.xyz, point) + plane.w);\n\
|
}\n\
|
\n\
|
/**\n\
|
* Computes distance from a point to a plane.\n\
|
*\n\
|
* @name czm_planeDistance\n\
|
* @glslFunction\n\
|
*\n\
|
* param {vec3} planeNormal Normal for a plane in Hessian Normal Form. See Plane.js\n\
|
* param {float} planeDistance Distance for a plane in Hessian Normal form. See Plane.js\n\
|
* param {vec3} point A point in the same space as the plane.\n\
|
* returns {float} The distance from the point to the plane.\n\
|
*/\n\
|
float czm_planeDistance(vec3 planeNormal, float planeDistance, vec3 point) {\n\
|
return (dot(planeNormal, point) + planeDistance);\n\
|
}\n\
|
";
|