源码:
var viewer = new Cesium.Viewer('cesiumContainer', { terrainProvider : Cesium.createWorldTerrain({ requestVertexNormals: true }) }); viewer.scene.globe.enableLighting = true;
部分源码:
var viewer = new Cesium.Viewer('cesiumContainer', { terrainProvider : Cesium.createWorldTerrain({ requestWaterMask: true }) });
const path = require('path'); const webpack = require('webpack'); module.exports = { context: __dirname, entry: { app: './src/index.js' }, output: { filename: '[name].js', path: path.resolve(__dirname, 'dist'), } };