Sha256: 145d960e487968951540c28821d8787b7d4513b51e6b55fb3f2df3041f322dfe
Contents?: true
Size: 1.78 KB
Versions: 2
Compression:
Stored size: 1.78 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1389617750.617907:@value"µ{I" class:ETI"BundledAsset; FI"logical_path; TI"&Shaders/Materials/FadeMaterial.js; TI" pathname; TI"_/Users/bogumil/www/engines/cesium/app/assets/javascripts/Shaders/Materials/FadeMaterial.js; FI"content_type; TI"application/javascript; TI" mtime; TI"2014-01-13T10:29:06+01:00; TI"length; TiµI"digest; TI"%1e501165f68dbef1f19c1e6bd6d51bbb; FI"source; TI"µ //This file is automatically rebuilt by the Cesium build process. /*global define*/ define(function() { "use strict"; return "uniform vec4 fadeInColor;\n\ uniform vec4 fadeOutColor;\n\ uniform float maximumDistance;\n\ uniform bool repeat;\n\ uniform vec2 fadeDirection;\n\ uniform vec2 time;\n\ \n\ float getTime(float t, float coord)\n\ {\n\ float scalar = 1.0 / maximumDistance;\n\ float q = distance(t, coord) * scalar;\n\ if (repeat)\n\ {\n\ float r = distance(t, coord + 1.0) * scalar;\n\ float s = distance(t, coord - 1.0) * scalar;\n\ q = min(min(r, s), q);\n\ }\n\ return clamp(q, 0.0, 1.0);\n\ }\n\ \n\ czm_material czm_getMaterial(czm_materialInput materialInput)\n\ {\n\ czm_material material = czm_getDefaultMaterial(materialInput);\n\ \n\ vec2 st = materialInput.st;\n\ float s = getTime(time.x, st.s) * fadeDirection.s;\n\ float t = getTime(time.y, st.t) * fadeDirection.t;\n\ \n\ float u = length(vec2(s, t));\n\ vec4 color = mix(fadeInColor, fadeOutColor, u);\n\ \n\ material.emission = color.rgb;\n\ material.alpha = color.a;\n\ \n\ return material;\n\ }\n\ "; }); ; TI"required_assets_digest; TI"%addd30705d1d91022f4461ac8f1d0c62; FI" _version; TI"%6776f581a4329e299531e1d52aa59832; F
Version data entries
2 entries across 2 versions & 1 rubygems