dvgis / dc-sdk

DC-SDK is based on the open source project Cesium for the second development of two three-dimensional WebGis application framework , the framework optimizes the use of Cesium and adds some additional features , designed for developers to quickly build WebGis application.🌎
http://dc.dvgis.cn
Apache License 2.0
827 stars 256 forks source link

设置底图滤镜 #83

Closed cavencj closed 2 years ago

cavencj commented 2 years ago
    let globeFS = viewer.scene.globe._surfaceShaderSet.baseFragmentShaderSource
    let oriShder = globeFS.sources[globeFS.sources.length - 1]
   globeFS.sources[globeFS.sources.length - 1] = oriShder.replace("gl_FragColor = finalColor;", "gl_FragColor = finalColor * vec4(0.11,0.36,0.5,1.0);")

这只是一种方式,如果有很好的方式,还请追加