Sha256: daeae4a54e13a8125fd09e2d7a68cd3586a3fb4cd4131ecfc96f6cb20fa14af6
Contents?: true
Size: 876 Bytes
Versions: 3
Compression:
Stored size: 876 Bytes
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 vec4 v_color;\n\ \n\ void main()\n\ {\n\ vec3 positionToEyeEC = -v_positionEC;\n\ \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\ \n\ czm_materialInput materialInput;\n\ materialInput.normalEC = normalEC;\n\ materialInput.positionToEyeEC = positionToEyeEC;\n\ czm_material material = czm_getDefaultMaterial(materialInput);\n\ material.diffuse = v_color.rgb;\n\ material.alpha = v_color.a;\n\ \n\ gl_FragColor = czm_phong(normalize(positionToEyeEC), material);\n\ }\n\ "; });
Version data entries
3 entries across 3 versions & 1 rubygems