Sha256: 6f7c6b6e693c1f9a87dc696702c9a23dc27978c9876d5c7b8aa2b69cff01880c
Contents?: true
Size: 963 Bytes
Versions: 4
Compression:
Stored size: 963 Bytes
Contents
//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 vec2 repeat;\n\ czm_material czm_getMaterial(czm_materialInput materialInput)\n\ {\n\ czm_material material = czm_getDefaultMaterial(materialInput);\n\ vec2 st = materialInput.st;\n\ float b = mod(floor(repeat.s * st.s) + floor(repeat.t * st.t), 2.0);\n\ float scaledWidth = fract(repeat.s * st.s);\n\ scaledWidth = abs(scaledWidth - floor(scaledWidth + 0.5));\n\ float scaledHeight = fract(repeat.t * st.t);\n\ scaledHeight = abs(scaledHeight - floor(scaledHeight + 0.5));\n\ float value = min(scaledWidth, scaledHeight);\n\ vec4 currentColor = mix(lightColor, darkColor, b);\n\ vec4 color = czm_antialias(lightColor, darkColor, currentColor, value, 0.03);\n\ material.diffuse = color.rgb;\n\ material.alpha = color.a;\n\ return material;\n\ }\n\ "; });
Version data entries
4 entries across 4 versions & 1 rubygems