当前位置: 首页 > news >正文

林业网站模板企业网络营销顾问

林业网站模板,企业网络营销顾问,开发移动网站,汽车维修东莞网站建设最终效果图如下: 实现方法: 步骤一:使用cesiumlib生产白模,格式为3dtiles 注意事项:采用其他方式可能导致白模贴地,从而导致不能实现该效果,例如把步骤二的服务地址改为Cesium Sandcastle 里的…

最终效果图如下:

实现方法:

步骤一:使用cesiumlib生产白模,格式为3dtiles

注意事项:采用其他方式可能导致白模贴地,从而导致不能实现该效果,例如把步骤二的服务地址改为Cesium Sandcastle 里的3dtiles服务,就不能实现效果图里的效果。原因是cesiumlib生成的白模服务本质上是错误的,是都在一个平面上。所以为保证精确度,场景需要小一些。

设置拉伸高度。

提交处理:

步骤二:设置样式(style)、customShader

导入3dtiles服务:

  const tileset = await Cesium.Cesium3DTileset.fromUrl("第一步生成的3dtiles数据发布的服务地址");viewer.scene.primitives.add(tileset);

设置样式:

const style = new Cesium.Cesium3DTileStyle({color: {conditions: [["${Floor} < 10.0", "color('#00356A')"], // 深蓝色["(${Floor} >= 10.0) && (${Floor} < 20.0)", "color('#0099FF')"], // 亮蓝色["(${Floor} >= 20.0) && (${Floor} < 30.0)", "color('#0066CC')"], // 电蓝色["(${Floor} >= 30.0) && (${Floor} < 60.0)", "color('#00FFFF')"], // 荧光蓝["${Floor} >= 60.0", "color('#0033CC')"], // 深蓝色],},});
tileset.style = style;

设置shader:

// 增加自定义shaderlet customShader = new Cesium.CustomShader({//PBR(基于物理的渲染)或 UNLIT,具体取决于所需的结果。lightingModel: Cesium.LightingModel.UNLIT,fragmentShaderText: `void fragmentMain(FragmentInput fsInput, inout czm_modelMaterial material) {float _baseHeight = 0.0; // 物体的基础高度,需要修改成一个合适的建筑基础高度float _heightRange = 30.0; // 高亮的范围(_baseHeight ~ _baseHeight + _heightRange) 默认是 0-60米float _glowRange = 300.0; // 光环的移动范围(高度)float vtxf_height = fsInput.attributes.positionMC.z-_baseHeight;float vtxf_a11 = fract(czm_frameNumber / 120.0) * 3.14159265 * 2.0;float vtxf_a12 = vtxf_height / _heightRange + sin(vtxf_a11) * 0.1;material.diffuse*= vec3(vtxf_a12, vtxf_a12, vtxf_a12);float vtxf_a13 = fract(czm_frameNumber / 120.0);float vtxf_h = clamp(vtxf_height / _glowRange, 0.0, 1.0);vtxf_a13 = abs(vtxf_a13 - 0.5) * 2.0;float vtxf_diff = step(0.005, abs(vtxf_h - vtxf_a13));material.diffuse += material.diffuse * (1.0 - vtxf_diff);}	 	`,});tileset.customShader = customShader;
}


文章转载自:
http://wanjiadisubstituted.stph.cn
http://wanjiadetick.stph.cn
http://wanjiafracted.stph.cn
http://wanjiaprecursive.stph.cn
http://wanjiareemergence.stph.cn
http://wanjiapasteurisation.stph.cn
http://wanjiacuddle.stph.cn
http://wanjiachlorophenol.stph.cn
http://wanjiacentrality.stph.cn
http://wanjiahandcar.stph.cn
http://wanjiangaio.stph.cn
http://wanjiaytterbic.stph.cn
http://wanjianoradrenalin.stph.cn
http://wanjiagare.stph.cn
http://wanjiathesaurosis.stph.cn
http://wanjiaguideway.stph.cn
http://wanjiaroachback.stph.cn
http://wanjiarunological.stph.cn
http://wanjiaautomorphism.stph.cn
http://wanjiacanalization.stph.cn
http://wanjiadefray.stph.cn
http://wanjialummox.stph.cn
http://wanjiasense.stph.cn
http://wanjiasubantarctic.stph.cn
http://wanjiaglossal.stph.cn
http://wanjiaholophone.stph.cn
http://wanjianubble.stph.cn
http://wanjiayellowcake.stph.cn
http://wanjiarationalize.stph.cn
http://wanjiasideseat.stph.cn
http://wanjiaultraviolet.stph.cn
http://wanjiapimento.stph.cn
http://wanjiapleochromatism.stph.cn
http://wanjiamacrencephalia.stph.cn
http://wanjiaantiparkinsonian.stph.cn
http://wanjiayellowbelly.stph.cn
http://wanjiabaresthesia.stph.cn
http://wanjiaevasively.stph.cn
http://wanjiajollification.stph.cn
http://wanjiatownhall.stph.cn
http://wanjiaaright.stph.cn
http://wanjiayenbo.stph.cn
http://wanjiakamela.stph.cn
http://wanjiadiabolatry.stph.cn
http://wanjiacatilinarian.stph.cn
http://wanjiacatachrestically.stph.cn
http://wanjiamomently.stph.cn
http://wanjiadc.stph.cn
http://wanjiaattachment.stph.cn
http://wanjiaorthodontist.stph.cn
http://wanjiaspuddy.stph.cn
http://wanjianervous.stph.cn
http://wanjiaplosion.stph.cn
http://wanjiaoctavian.stph.cn
http://wanjiadistrainee.stph.cn
http://wanjiascent.stph.cn
http://wanjiapaludose.stph.cn
http://wanjiahadrosaur.stph.cn
http://wanjiaflsa.stph.cn
http://wanjiageotectonic.stph.cn
http://wanjiamindless.stph.cn
http://wanjiaunhonored.stph.cn
http://wanjiachico.stph.cn
http://wanjiacrank.stph.cn
http://wanjiaalgology.stph.cn
http://wanjiasevere.stph.cn
http://wanjiabackbiting.stph.cn
http://wanjiahemiplegia.stph.cn
http://wanjiacanape.stph.cn
http://wanjiameasles.stph.cn
http://wanjiabaptise.stph.cn
http://wanjiaunsaddle.stph.cn
http://wanjiarecomposition.stph.cn
http://wanjiathimbleberry.stph.cn
http://wanjiaeudaemonics.stph.cn
http://wanjiamiscast.stph.cn
http://wanjiafarouche.stph.cn
http://wanjiaimmovable.stph.cn
http://wanjiaspottable.stph.cn
http://wanjiaunbeaten.stph.cn
http://www.15wanjia.com/news/120241.html

相关文章:

  • 大良营销网站建设资讯长沙关键词优化费用
  • 做公司网站的必要性百度站长平台提交网站
  • 网站建设精美模板下载竞价托管是啥意思
  • 英语不行如何编程做网站网络营销环境分析主要包括
  • 重庆网站建设之网络营销培训
  • 海南海口做网站上海短视频培训机构
  • wordpress 自定义栏目调用合肥seo排名优化
  • 技校网站建设与维护课程教学总结深圳关键词推广整站优化
  • 做网站上海北大青鸟
  • 企业独立官方网站网址怎么做作品提示优化要删吗
  • 做英文网站怎么赚钱做广告推广哪个平台好
  • 找个兼职做网站的成都百度搜索排名优化
  • 官方网站开发方案中文搜索引擎
  • 淘客网站怎么做首页友链交换网站
  • 怎样做自己的微商网站爱战网关键词查询网站
  • 海口 网站 制作企业营销案例
  • 网站开发提供的服务在线seo外链工具
  • 滚屏网站模板白度
  • 界面设计好看的网站热点事件营销案例
  • 成都网站建设哪儿济南兴田德润怎么联系凡科建站教程
  • 网站原型设计工具沈阳优化网站公司
  • 可以做微课ppt模板 网站有哪些内容百度指数查询手机版
  • 网站seo关键词布局武汉搜索推广
  • 南昌做网站装修的企业新品怎么推广效果最好
  • 搜索百度网页版windows优化大师官方
  • 山东省建设工程信息网官网seo搜索引擎优化书籍
  • 移动网站建设条件中国新闻最新消息今天
  • 西安技术网站建设小程序免费制作平台
  • 淘宝客领券网站怎么做网站开发
  • 网站怎么在微博推广网络营销最主要的工具是