Add existing to tracked
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
in vec4 currentPosition;
|
||||
in vec4 previousPosition;
|
||||
in vec4 nextPosition;
|
||||
in vec2 expandAndWidth;
|
||||
in float a_batchId;
|
||||
|
||||
uniform mat4 u_modifiedModelView;
|
||||
|
||||
void main()
|
||||
{
|
||||
float expandDir = expandAndWidth.x;
|
||||
float width = abs(expandAndWidth.y) + 0.5;
|
||||
bool usePrev = expandAndWidth.y < 0.0;
|
||||
|
||||
vec4 p = u_modifiedModelView * currentPosition;
|
||||
vec4 prev = u_modifiedModelView * previousPosition;
|
||||
vec4 next = u_modifiedModelView * nextPosition;
|
||||
|
||||
float angle;
|
||||
vec4 positionWC = getPolylineWindowCoordinatesEC(p, prev, next, expandDir, width, usePrev, angle);
|
||||
gl_Position = czm_viewportOrthographic * positionWC;
|
||||
}
|
||||
Reference in New Issue
Block a user