Sha256: e96a889f133f5aabe86099b660ac4ad3833dc27f6751f0ba9d5dc9859552f9dc
Contents?: true
Size: 1.4 KB
Versions: 1
Compression:
Stored size: 1.4 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1372843474.046803:@value"1{I" class:EFI"BundledAsset; 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"required_assets_digest; F"%d31eb4e90001109b55c2d30661d6e3c4I" _version; F"%6776f581a4329e299531e1d52aa59832
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cesium-0.18.0 | test/dummy/tmp/cache/assets/CA7/070/sprockets%2F7e356c41b093df0c013d78413713f4a9 |