Sha256: 16f324871694b7c2a0e9e5ff464311f80eb871dff465deb016652e95d9313ad0
Contents?: true
Size: 671 Bytes
Versions: 3
Compression:
Stored size: 671 Bytes
Contents
//This file is automatically rebuilt by the Cesium build process. /*global define*/ define(function() { "use strict"; return "czm_material czm_getMaterial(czm_materialInput materialInput)\n\ {\n\ czm_material material = czm_getDefaultMaterial(materialInput);\n\ \n\ vec3 normalWC = normalize(czm_inverseViewRotation * material.normal);\n\ vec3 positionWC = normalize(czm_inverseViewRotation * materialInput.positionToEyeEC);\n\ float cosAngIncidence = max(dot(normalWC, positionWC), 0.0);\n\ \n\ material.diffuse = mix(reflection.diffuse, refraction.diffuse, cosAngIncidence);\n\ \n\ return material;\n\ }\n\ "; });
Version data entries
3 entries across 3 versions & 1 rubygems