yzt
2023-05-26 de4278af2fd46705a40bac58ec01122db6b7f3d7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//This file is automatically rebuilt by the Cesium build process.
export default "precision highp float;\n\
\n\
void main() \n\
{\n\
    // Initialize the attributes struct with all\n\
    // attributes except quantized ones.\n\
    ProcessedAttributes attributes;\n\
    initializeAttributes(attributes);\n\
\n\
    // Dequantize the quantized ones and add them to the\n\
    // attributes struct.\n\
    #ifdef USE_DEQUANTIZATION\n\
    dequantizationStage(attributes);\n\
    #endif\n\
\n\
    // Update the position for this instance in place\n\
    #ifdef HAS_INSTANCING\n\
    instancingStage(attributes.positionMC);\n\
        #ifdef USE_PICKING\n\
        v_pickColor = a_pickColor;\n\
        #endif\n\
    #endif\n\
\n\
    #if defined(HAS_FEATURES) && defined(FEATURE_ID_ATTRIBUTE)\n\
    Feature feature;\n\
    featureStage(feature);\n\
    cpuStylingStage(attributes.positionMC, feature);\n\
    updateFeatureStruct(feature);\n\
    #endif\n\
    \n\
    #ifdef HAS_CUSTOM_VERTEX_SHADER\n\
    customShaderStage(attributes);\n\
    #endif\n\
\n\
    // Compute the final position in each coordinate system needed.\n\
    // This also sets gl_Position.\n\
    geometryStage(attributes);    \n\
\n\
    #ifdef PRIMITIVE_TYPE_POINTS\n\
    pointStage();\n\
    #endif\n\
}\n\
";