You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
495 B
GLSL
20 lines
495 B
GLSL
attribute vec3 position3DHigh;
|
|
attribute vec3 position3DLow;
|
|
attribute vec2 st;
|
|
attribute float batchId;
|
|
|
|
varying vec3 v_positionMC;
|
|
varying vec3 v_positionEC;
|
|
varying vec2 v_st;
|
|
|
|
void main()
|
|
{
|
|
vec4 p = czm_computePosition();
|
|
|
|
v_positionMC = position3DHigh + position3DLow; // position in model coordinates
|
|
v_positionEC = (czm_modelViewRelativeToEye * p).xyz; // position in eye coordinates
|
|
v_st = st;
|
|
|
|
gl_Position = czm_modelViewProjectionRelativeToEye * p;
|
|
}
|