Sha256: b51ddf1df16a3afb025252be12562869fe3d9f0f6027c997ad5b7483007997a0
Contents?: true
Size: 860 Bytes
Versions: 1
Compression:
Stored size: 860 Bytes
Contents
//This file is automatically rebuilt by the Cesium build process. /*global define*/ define(function() { "use strict"; return "uniform vec4 u_intersectionColor;\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\ #ifndef RENDER_FOR_PICK\n\ vec4 getIntersectionColor()\n\ {\n\ return u_intersectionColor;\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\ #endif\n\ "; });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cesium-0.18.0 | app/assets/javascripts/Shaders/SensorVolume.js |