yzt
2023-05-26 2f70f6727314edd84d8ec2bfe3ce832803f1ea77
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
attribute vec3 position3DHigh;
attribute vec3 position3DLow;
attribute vec3 normal;
attribute vec4 color;
attribute float batchId;
 
varying vec3 v_positionEC;
varying vec3 v_normalEC;
varying vec4 v_color;
 
void main()
{
    vec4 p = czm_computePosition();
 
    v_positionEC = (czm_modelViewRelativeToEye * p).xyz;      // position in eye coordinates
    v_normalEC = czm_normal * normal;                         // normal in eye coordinates
    v_color = color;
 
    gl_Position = czm_modelViewProjectionRelativeToEye * p;
}