SkyAtmosphereVS.js 578 Bytes
Newer Older
Manggar Mahardhika's avatar
Manggar Mahardhika committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
//This file is automatically rebuilt by the Cesium build process.
export default "attribute vec4 position;\n\
\n\
varying vec3 v_outerPositionWC;\n\
\n\
#ifndef PER_FRAGMENT_ATMOSPHERE\n\
varying vec3 v_mieColor;\n\
varying vec3 v_rayleighColor;\n\
#endif\n\
\n\
void main(void)\n\
{\n\
    vec4 positionWC = czm_model * position;\n\
\n\
#ifndef PER_FRAGMENT_ATMOSPHERE\n\
    calculateMieColorAndRayleighColor(positionWC.xyz, v_mieColor, v_rayleighColor);\n\
#endif\n\
    v_outerPositionWC = positionWC.xyz;\n\
    gl_Position = czm_modelViewProjection * position;\n\
}\n\
";