12345678910111213141516171819202122232425262728293031 |
- //This file is automatically rebuilt by the Cesium build process.
- /*global define*/
- define(function() {
- "use strict";
- return "attribute vec3 position3DHigh;\n\
- attribute vec3 position3DLow;\n\
- attribute vec3 normal;\n\
- attribute vec3 tangent;\n\
- attribute vec3 binormal;\n\
- attribute vec2 st;\n\
- \n\
- 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\
- \n\
- void main() \n\
- {\n\
- vec4 p = czm_computePosition();\n\
- \n\
- v_positionEC = (czm_modelViewRelativeToEye * p).xyz; // position in eye coordinates\n\
- v_normalEC = czm_normal * normal; // normal in eye coordinates\n\
- v_tangentEC = czm_normal * tangent; // tangent in eye coordinates\n\
- v_binormalEC = czm_normal * binormal; // binormal in eye coordinates\n\
- v_st = st;\n\
- \n\
- gl_Position = czm_modelViewProjectionRelativeToEye * p;\n\
- }\n\
- ";
- });
|