Sha256: 37c64d771ddbafc1d9fc386978413ef18e62a948fd8d26a0e889e309e3da53c5
Contents?: true
Size: 1.06 KB
Versions: 4
Compression:
Stored size: 1.06 KB
Contents
//This file is automatically rebuilt by the Cesium build process. /*global define*/ define(function() { "use strict"; return "varying vec3 v_positionEC;\n\ varying vec3 v_normalEC;\n\ varying vec3 v_tangentEC;\n\ varying vec3 v_binormalEC;\n\ varying vec2 v_st;\n\ void main()\n\ {\n\ vec3 positionToEyeEC = -v_positionEC;\n\ mat3 tangentToEyeMatrix = czm_tangentToEyeSpaceMatrix(v_normalEC, v_tangentEC, v_binormalEC);\n\ vec3 normalEC;\n\ #ifdef FACE_FORWARD\n\ normalEC = normalize(faceforward(v_normalEC, vec3(0.0, 0.0, 1.0), -v_normalEC));\n\ #else\n\ normalEC = normalize(v_normalEC);\n\ #endif\n\ czm_materialInput materialInput;\n\ materialInput.normalEC = normalEC;\n\ materialInput.tangentToEyeMatrix = tangentToEyeMatrix;\n\ materialInput.positionToEyeEC = positionToEyeEC;\n\ materialInput.st = v_st;\n\ czm_material material = czm_getMaterial(materialInput);\n\ #ifdef FLAT\n\ gl_FragColor = vec4(material.diffuse + material.emission, material.alpha);\n\ #else\n\ gl_FragColor = czm_phong(normalize(positionToEyeEC), material);\n\ #endif\n\ }\n\ "; });
Version data entries
4 entries across 4 versions & 1 rubygems