Sha256: ec306644d0b8e1892fde507fb7a7d5d44a873e40af757d86cd648e5d0c4d77b7
Contents?: true
Size: 954 Bytes
Versions: 4
Compression:
Stored size: 954 Bytes
Contents
//This file is automatically rebuilt by the Cesium build process. /*global define*/ define(function() { "use strict"; return "uniform vec4 u_intersectionColor;\n\ uniform float u_intersectionWidth;\n\ bool inSensorShadow(vec3 coneVertexWC, czm_ellipsoid ellipsoidEC, vec3 pointWC)\n\ {\n\ vec3 D = ellipsoidEC.inverseRadii;\n\ vec3 q = D * coneVertexWC;\n\ float qMagnitudeSquared = dot(q, q);\n\ float test = qMagnitudeSquared - 1.0;\n\ vec3 temp = D * pointWC - q;\n\ float d = dot(temp, q);\n\ return (d < -test) && (d / length(temp) < -sqrt(test));\n\ }\n\ vec4 getIntersectionColor()\n\ {\n\ return u_intersectionColor;\n\ }\n\ float getIntersectionWidth()\n\ {\n\ return u_intersectionWidth;\n\ }\n\ vec2 sensor2dTextureCoordinates(float sensorRadius, vec3 pointMC)\n\ {\n\ float t = pointMC.z / sensorRadius;\n\ float s = 1.0 + (atan(pointMC.y, pointMC.x) / czm_twoPi);\n\ s = s - floor(s);\n\ return vec2(s, t);\n\ }\n\ "; });
Version data entries
4 entries across 4 versions & 1 rubygems