Sha256: 870762aae590021b70600d467db28f759641d9b8e8f7efc87d6a497124b03ac5
Contents?: true
Size: 1.58 KB
Versions: 2
Compression:
Stored size: 1.58 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1389617750.4887328:@value"ì{I" class:ETI"BundledAsset; FI"logical_path; TI"(Shaders/Materials/StripeMaterial.js; TI" pathname; TI"a/Users/bogumil/www/engines/cesium/app/assets/javascripts/Shaders/Materials/StripeMaterial.js; FI"content_type; TI"application/javascript; TI" mtime; TI"2014-01-13T10:29:06+01:00; TI"length; TièI"digest; TI"%1a3226cd50b1e76b3e0f327b4ef8a34f; FI"source; TI"è //This file is automatically rebuilt by the Cesium build process. /*global define*/ define(function() { "use strict"; return "uniform vec4 lightColor;\n\ uniform vec4 darkColor;\n\ uniform float offset;\n\ uniform float repeat;\n\ uniform bool horizontal;\n\ \n\ czm_material czm_getMaterial(czm_materialInput materialInput)\n\ {\n\ czm_material material = czm_getDefaultMaterial(materialInput);\n\ \n\ // Based on the Stripes Fragment Shader in the Orange Book (11.1.2)\n\ float coord = mix(materialInput.st.s, materialInput.st.t, float(horizontal));\n\ float value = fract((coord - offset) * (repeat * 0.5));\n\ float dist = min(value, min(abs(value - 0.5), 1.0 - value));\n\ \n\ vec4 currentColor = mix(lightColor, darkColor, step(0.5, value));\n\ vec4 color = czm_antialias(lightColor, darkColor, currentColor, dist);\n\ \n\ material.diffuse = color.rgb;\n\ material.alpha = color.a;\n\ \n\ return material;\n\ }\n\ "; }); ; TI"required_assets_digest; TI"%c17c458f1df2eeb1bd4978d0d03de6d6; FI" _version; TI"%6776f581a4329e299531e1d52aa59832; F
Version data entries
2 entries across 2 versions & 1 rubygems