Sha256: 7a1b7ad475077b8187f48eb536cd6dc265daef8714613cc4c66a047406c4e498
Contents?: true
Size: 1.42 KB
Versions: 3
Compression:
Stored size: 1.42 KB
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\ \n\ bool inSensorShadow(vec3 coneVertexWC, czm_ellipsoid ellipsoidEC, vec3 pointWC)\n\ {\n\ // Diagonal matrix from the unscaled ellipsoid space to the scaled space. \n\ vec3 D = ellipsoidEC.inverseRadii;\n\ \n\ // Sensor vertex in the scaled ellipsoid space\n\ vec3 q = D * coneVertexWC;\n\ float qMagnitudeSquared = dot(q, q);\n\ float test = qMagnitudeSquared - 1.0;\n\ \n\ // Sensor vertex to fragment vector in the ellipsoid's scaled space\n\ vec3 temp = D * pointWC - q;\n\ float d = dot(temp, q);\n\ \n\ // Behind silhouette plane and inside silhouette cone\n\ return (d < -test) && (d / length(temp) < -sqrt(test));\n\ }\n\ \n\ ///////////////////////////////////////////////////////////////////////////////\n\ \n\ vec4 getIntersectionColor()\n\ {\n\ return u_intersectionColor;\n\ }\n\ \n\ float getIntersectionWidth()\n\ {\n\ return u_intersectionWidth;\n\ }\n\ \n\ vec2 sensor2dTextureCoordinates(float sensorRadius, vec3 pointMC)\n\ {\n\ // (s, t) both in the range [0, 1]\n\ float t = pointMC.z / sensorRadius;\n\ float s = 1.0 + (atan(pointMC.y, pointMC.x) / czm_twoPi);\n\ s = s - floor(s);\n\ \n\ return vec2(s, t);\n\ }\n\ "; });
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cesium-0.25.0 | app/assets/javascripts/Shaders/SensorVolume.js |
cesium-0.24.1 | app/assets/javascripts/Shaders/SensorVolume.js |
cesium-0.24.0 | app/assets/javascripts/Shaders/SensorVolume.js |