Sha256: 171220b95ff01f734daab5d1f8b9a76cc7be6b7efca2f7d778f343be12d54ab4
Contents?: true
Size: 625 Bytes
Versions: 3
Compression:
Stored size: 625 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 rimColor;\n\ uniform float width;\n\ czm_material czm_getMaterial(czm_materialInput materialInput)\n\ {\n\ czm_material material = czm_getDefaultMaterial(materialInput);\n\ float d = 1.0 - dot(materialInput.normalEC, normalize(materialInput.positionToEyeEC));\n\ float s = smoothstep(1.0 - width, 1.0, d);\n\ material.diffuse = color.rgb;\n\ material.emission = rimColor.rgb * s;\n\ material.alpha = mix(color.a, rimColor.a, s);\n\ return material;\n\ }\n\ "; });
Version data entries
3 entries across 3 versions & 1 rubygems