25 lines
789 B
JavaScript
25 lines
789 B
JavaScript
//This file is automatically rebuilt by the Cesium build process.
|
|
export default "in vec4 currentPosition;\n\
|
|
in vec4 previousPosition;\n\
|
|
in vec4 nextPosition;\n\
|
|
in vec2 expandAndWidth;\n\
|
|
in float a_batchId;\n\
|
|
\n\
|
|
uniform mat4 u_modifiedModelView;\n\
|
|
\n\
|
|
void main()\n\
|
|
{\n\
|
|
float expandDir = expandAndWidth.x;\n\
|
|
float width = abs(expandAndWidth.y) + 0.5;\n\
|
|
bool usePrev = expandAndWidth.y < 0.0;\n\
|
|
\n\
|
|
vec4 p = u_modifiedModelView * currentPosition;\n\
|
|
vec4 prev = u_modifiedModelView * previousPosition;\n\
|
|
vec4 next = u_modifiedModelView * nextPosition;\n\
|
|
\n\
|
|
float angle;\n\
|
|
vec4 positionWC = getPolylineWindowCoordinatesEC(p, prev, next, expandDir, width, usePrev, angle);\n\
|
|
gl_Position = czm_viewportOrthographic * positionWC;\n\
|
|
}\n\
|
|
";
|