DSDSWeb/static/js/Cesium-1.53/Source/Shaders/Appearances/BasicMaterialAppearanceVS.js

22 lines
634 B
JavaScript
Raw Normal View History

2024-07-11 18:02:47 +08:00
//This file is automatically rebuilt by the Cesium build process.
define(function() {
'use strict';
return "attribute vec3 position3DHigh;\n\
attribute vec3 position3DLow;\n\
attribute vec3 normal;\n\
attribute float batchId;\n\
\n\
varying vec3 v_positionEC;\n\
varying vec3 v_normalEC;\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\
\n\
gl_Position = czm_modelViewProjectionRelativeToEye * p;\n\
}\n\
";
});