Sha256: 9d563ee3008d706e1ea6b52e5c7b65bff3b38845570b15e21220145ec9699d11

Contents?: true

Size: 1.43 KB

Versions: 2

Compression:

Stored size: 1.43 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1380709798.24435:@value"U{I"
class:ETI"BundledAsset;FI"logical_path;TI"-Shaders/PostProcessFilters/BrightPass.js;TI"
pathname;TI"f/Users/bogumil/www/engines/cesium/app/assets/javascripts/Shaders/PostProcessFilters/BrightPass.js;FI"content_type;TI"application/javascript;TI"
mtime;TI"2013-10-02T12:16:28+02:00;TI"length;TiGI"digest;TI"%936ac193dc30f3a1f782ff4e0acfd49c;FI"source;TI"G    //This file is automatically rebuilt by the Cesium build process.
    /*global define*/

    define(function() {
    "use strict";
    return "uniform sampler2D u_texture;\n\
uniform float u_avgLuminance;\n\
uniform float u_threshold;\n\
uniform float u_offset;\n\
varying vec2 v_textureCoordinates;\n\
float key(float avg)\n\
{\n\
float guess = 1.5 - (1.5 / (avg * 0.1 + 1.0));\n\
return max(0.0, guess) + 0.1;\n\
}\n\
void main()\n\
{\n\
vec4 color = texture2D(u_texture, v_textureCoordinates);\n\
vec3 xyz = czm_RGBToXYZ(color.rgb);\n\
float luminance = xyz.r;\n\
float scaledLum = key(u_avgLuminance) * luminance / u_avgLuminance;\n\
float brightLum = max(scaledLum - u_threshold, 0.0);\n\
float brightness = brightLum / (u_offset + brightLum);\n\
xyz.r = brightness;\n\
gl_FragColor = vec4(czm_XYZToRGB(xyz), 1.0);\n\
}\n\
";
});
;TI"required_assets_digest;TI"%ac8208ab0ce15988aad9280311ec1d18;FI"
_version;TI"%6776f581a4329e299531e1d52aa59832;F

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cesium-0.21.1 test/dummy/tmp/cache/assets/D6D/CF0/sprockets%2Fbbad825b6b477d1967533ee21c454ade
cesium-0.21 test/dummy/tmp/cache/assets/D6D/CF0/sprockets%2Fbbad825b6b477d1967533ee21c454ade