Sha256: 92d551ceea76b7d9664316ec611aa4b29f81e78831341e4ba3c8cb729c6d3976
Contents?: true
Size: 1.79 KB
Versions: 2
Compression:
Stored size: 1.79 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1380709798.240302:@value"�{I" class:ETI"ProcessedAsset;FI"logical_path;TI"-Shaders/PostProcessFilters/BrightPass.js;FI" 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"dependency_digest;TI"%ac8208ab0ce15988aad9280311ec1d18;FI"required_paths;T[I"f/Users/bogumil/www/engines/cesium/app/assets/javascripts/Shaders/PostProcessFilters/BrightPass.js;FI"dependency_paths;T[{I" path;TI"f/Users/bogumil/www/engines/cesium/app/assets/javascripts/Shaders/PostProcessFilters/BrightPass.js;FI" mtime;TI"2013-10-02T12:16:28+02:00;TI"digest;TI"%7e071e16b0f803dcafa6741c1776ca58;FI" _version;TI"%6776f581a4329e299531e1d52aa59832;F
Version data entries
2 entries across 2 versions & 1 rubygems