Sha256: ae3700c93bab3ad071a1ddf3ba5f0bafaad485c6e4fa722f310add200081ef6e
Contents?: true
Size: 1.1 KB
Versions: 4
Compression:
Stored size: 1.1 KB
Contents
//This file is automatically rebuilt by the Cesium build process. /*global define*/ define(function() { "use strict"; return "varying vec3 v_positionMC;\n\ varying vec3 v_positionEC;\n\ varying vec2 v_st;\n\ void main()\n\ {\n\ czm_materialInput materialInput;\n\ vec3 normalEC = czm_normal3D * czm_geodeticSurfaceNormal(v_positionMC, vec3(0.0), vec3(1.0));\n\ #ifdef FACE_FORWARD\n\ normalEC = normalize(faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC));\n\ #else\n\ normalEC = normalize(normalEC);\n\ #endif\n\ materialInput.s = v_st.s;\n\ materialInput.st = v_st;\n\ materialInput.str = vec3(v_st, 0.0);\n\ materialInput.normalEC = normalEC;\n\ materialInput.tangentToEyeMatrix = czm_eastNorthUpToEyeCoordinates(v_positionMC, materialInput.normalEC);\n\ vec3 positionToEyeEC = -v_positionEC;\n\ materialInput.positionToEyeEC = positionToEyeEC;\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