Sha256: 516fa1838130fb61a42bc35948ae59a64e473866bc3b05c3788b1e268b8c33fb
Contents?: true
Size: 1.75 KB
Versions: 1
Compression:
Stored size: 1.75 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1372843474.04064:@value"�{I" class:EFI"ProcessedAsset;FI"logical_path;FI"-Shaders/PostProcessFilters/BrightPass.js;TI" pathname;FI"e/Users/bwrona/www/engines/cesium/app/assets/javascripts/Shaders/PostProcessFilters/BrightPass.js;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-07-03T11:16:47+02:00;FI"length;Fi3I"digest;F"%f1cf9e52570492524f4407cfc7651adfI"source;FI"3//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\ "; }); ;FI"dependency_digest;F"%d31eb4e90001109b55c2d30661d6e3c4I"required_paths;F[I"e/Users/bwrona/www/engines/cesium/app/assets/javascripts/Shaders/PostProcessFilters/BrightPass.js;TI"dependency_paths;F[{I" path;FI"e/Users/bwrona/www/engines/cesium/app/assets/javascripts/Shaders/PostProcessFilters/BrightPass.js;TI" mtime;FI"2013-07-03T11:16:47+02:00;FI"digest;F"%602191bf334a67072d9d6a3e3a78a12eI" _version;F"%6776f581a4329e299531e1d52aa59832
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cesium-0.18.0 | test/dummy/tmp/cache/assets/D42/260/sprockets%2Ff5b022558528e531efb9d570bec08ef3 |