Cesium 1.87+实现建筑泛光效果
Cesium 1.87+增加了customShader自定义着色器,实现建筑泛光效果示例代码如下:
<!DOCTYPE html>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<title>demo</title>
<link href="../Cesium188/Build/Cesium/Widgets/widgets.css" rel="stylesheet" />
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
<script src="../Cesium188/Build/Cesium/Cesium.js"></script>
<style>
html,
body,
#cesiumContainer {
width: 100%;
height: 100%;
margin: 0;
padding: 0;