Sha256: e91c052b7e08a55e120d177764c8fee4ba10ec85858c36904e9f181886596cec

Contents?: true

Size: 922 Bytes

Versions: 3

Compression:

Stored size: 922 Bytes

Contents

//This file is automatically rebuilt by the Cesium build process.
/*global define*/
define(function() {
"use strict";
return "uniform vec3 u_color;\n\
varying vec2 v_textureCoordinates;\n\
void main()\n\
{\n\
czm_ellipsoid ellipsoid = czm_getWgs84EllipsoidEC();\n\
vec3 direction = normalize(czm_windowToEyeCoordinates(gl_FragCoord).xyz);\n\
czm_ray ray = czm_ray(vec3(0.0), direction);\n\
czm_raySegment intersection = czm_rayEllipsoidIntersectionInterval(ray, ellipsoid);\n\
if (!czm_isEmpty(intersection))\n\
{\n\
vec3 positionEC = czm_pointAlongRay(ray, intersection.start);\n\
vec3 positionMC = (czm_inverseModelView * vec4(positionEC, 1.0)).xyz;\n\
vec3 normalMC = normalize(czm_geodeticSurfaceNormal(positionMC, vec3(0.0), vec3(1.0)));\n\
vec3 normalEC = normalize(czm_normal * normalMC);\n\
vec3 startDayColor = u_color;\n\
gl_FragColor = vec4(startDayColor, 1.0);\n\
}\n\
else\n\
{\n\
discard;\n\
}\n\
}\n\
";
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cesium-0.20.0 app/assets/javascripts/Shaders/CentralBodyFSPole.js
cesium-0.19.0 app/assets/javascripts/Shaders/CentralBodyFSPole.js
cesium-0.18.0 app/assets/javascripts/Shaders/CentralBodyFSPole.js