Sha256: 57a33f8de4b93c1e22f9ae9285658163137a4f7685c49f02c052181efdeb2f4d
Contents?: true
Size: 957 Bytes
Versions: 4
Compression:
Stored size: 957 Bytes
Contents
//This file is automatically rebuilt by the Cesium build process. /*global define*/ define(function() { "use strict"; return "uniform vec4 color;\n\ uniform vec4 outlineColor;\n\ uniform float outlineWidth;\n\ varying float v_width;\n\ czm_material czm_getMaterial(czm_materialInput materialInput)\n\ {\n\ czm_material material = czm_getDefaultMaterial(materialInput);\n\ vec2 st = materialInput.st;\n\ float halfInteriorWidth = 0.5 * (v_width - outlineWidth) / v_width;\n\ float b = step(0.5 - halfInteriorWidth, st.t);\n\ b *= 1.0 - step(0.5 + halfInteriorWidth, st.t);\n\ float d1 = abs(st.t - (0.5 - halfInteriorWidth));\n\ float d2 = abs(st.t - (0.5 + halfInteriorWidth));\n\ float dist = min(d1, d2);\n\ vec4 currentColor = mix(outlineColor, color, b);\n\ vec4 outColor = czm_antialias(outlineColor, color, currentColor, dist);\n\ material.diffuse = outColor.rgb;\n\ material.alpha = outColor.a;\n\ return material;\n\ }\n\ "; });
Version data entries
4 entries across 4 versions & 1 rubygems