我决定不从claygl基础来讲了 直接整合arcgis与claygl可视化来讲
关于整合clagyl 有兴趣看我这篇文章 arcgis 与 claygl 引擎结合做地图可视化
我整合一个类库 后续不断更新中
npm i @haibalai/gismap4-claygl
初始化gismap4-claygl 类库, view是arcgis的sceneView对象
import { ClayglMapManager} from “@haibalai/gismap4-claygl”;
ClayglMapManager.init(view);
添加特效
import { ClayglMapManager} from “@haibalai/gismap4-claygl”;
import * as clay from “claygl”;
const fragmentShader = `
#define TAU 6.28318530718
#define MAX_ITER 5
precision highp float;
uniform float iTime;
uniform vec2 iResolution;
varying vec2 vUv;
voidmain(void) {
float time = iTime * .5+23.0;
// uv should be the 0-1 uv of texture…
vec2 uv = vUv;
#ifdef SHOW_TILING
vec2 p = mod(uvTAU2.0, TAU)-250.0;
#else
vec2 p = mod(uv*TAU, TAU)-250.0;
#endif
vec2 i = vec2§;
float c = 1.0;
float inten = .005;
for (int n = 0; n
Arcgis 与 Claygl 可视化 glsl 特效篇(十一) - 小专栏
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
机房租用,北京机房租用,IDC机房托管, http://www.e1idc.net