Sha256: 284a654d4dff390ad2b44ba13764658e48762d552e989f06cb4e3098b1e1f976

Contents?: true

Size: 607 Bytes

Versions: 4

Compression:

Stored size: 607 Bytes

Contents

    //This file is automatically rebuilt by the Cesium build process.
    /*global define*/
    define(function() {
    "use strict";
    return "uniform sampler2D u_texture0;\n\
uniform sampler2D u_texture1;\n\
uniform vec2 u_center;\n\
uniform float u_radius;\n\
varying vec2 v_textureCoordinates;\n\
void main()\n\
{\n\
vec4 color0 = texture2D(u_texture0, v_textureCoordinates);\n\
vec4 color1 = texture2D(u_texture1, v_textureCoordinates);\n\
float x = length(gl_FragCoord.xy - u_center) / u_radius;\n\
float t = smoothstep(0.5, 0.8, x);\n\
gl_FragColor = mix(color0 + color1, color0, t);\n\
}\n\
";
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cesium-0.23.0 app/assets/javascripts/Shaders/PostProcessFilters/AdditiveBlend.js
cesium-0.22.0 app/assets/javascripts/Shaders/PostProcessFilters/AdditiveBlend.js
cesium-0.21.1 app/assets/javascripts/Shaders/PostProcessFilters/AdditiveBlend.js
cesium-0.21 app/assets/javascripts/Shaders/PostProcessFilters/AdditiveBlend.js