UNPKG

@cesium/engine

Version:

CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.

28 lines (27 loc) 868 B
//This file is automatically rebuilt by the Cesium build process. export default "void geometryStage(out ProcessedAttributes attributes)\n\ {\n\ attributes.positionMC = v_positionMC;\n\ attributes.positionEC = v_positionEC;\n\ \n\ #if defined(COMPUTE_POSITION_WC_CUSTOM_SHADER) || defined(COMPUTE_POSITION_WC_STYLE) || defined(COMPUTE_POSITION_WC_ATMOSPHERE)\n\ attributes.positionWC = v_positionWC;\n\ #endif\n\ \n\ #ifdef HAS_NORMALS\n\ // renormalize after interpolation\n\ attributes.normalEC = normalize(v_normalEC);\n\ #endif\n\ \n\ #ifdef HAS_TANGENTS\n\ attributes.tangentEC = normalize(v_tangentEC);\n\ #endif\n\ \n\ #ifdef HAS_BITANGENTS\n\ attributes.bitangentEC = normalize(v_bitangentEC);\n\ #endif\n\ \n\ // Everything else is dynamically generated in GeometryPipelineStage\n\ setDynamicVaryings(attributes);\n\ }\n\ ";