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

大连h5建站模板短视频新媒体推广

大连h5建站模板,短视频新媒体推广,网上工伤做实网站,深圳网站建设平台当前示例源码github地址: https://github.com/vilyLei/voxwebgpu/blob/feature/material/src/voxgpu/sample/DataDrivenScene2.ts 当前示例运行效果: 此示例基于此渲染系统实现,当前示例TypeScript源码如下: json场景数据: {"renderer": {"mtplE…

当前示例源码github地址:

https://github.com/vilyLei/voxwebgpu/blob/feature/material/src/voxgpu/sample/DataDrivenScene2.ts

当前示例运行效果:

此示例基于此渲染系统实现,当前示例TypeScript源码如下:

json场景数据:

{"renderer": {"mtplEnabled": true,"camera": {"eye": [1100,1100,500],"up": [0,1,0]}},"scene": {"light": {"pointLights": [{"position": [0,190,0],"color": [5,0,0],"factor1": 0.00001,"factor2": 0.00002}],"directionLights": [{"direction": [-1, -1, 0],"color": [0.5, 0.5, 0.5]}],"spotLights": []},"shadow": {"intensity": 0.4,"radius": 4},"fog": {"color": [0.3,0.7,0.2]}},"entities": [{"plane": {"entity": {"axisType": 1,"extent": [-600,-600,1200,1200],"transform": {"position": [0,0,0]},"materials": [{"type": "default","lighting": true,"shadow": false,"shadowReceived": true,"fogging": true,"arms": [1,0.3,0.2],"albedo": [0.6,0.6,0.5]}]}}},{"sphere": {"entity": {"radius": 80,"transform": {"position": [0,100,200]},"materials": [{"type": "default","lighting": true,"shadow": true,"shadowReceived": true,"fogging": true,"arms": [1,0.3,0.2],"albedo": [0.7,0.6,0.5]}]}}},{"cube": {"entity": {"size": 80,"transform": {"position": [220,130,-10],"scale": [2,1.5,3],"rotation": [-190,0,200]},"materials": [{"type": "default","lighting": true,"shadow": true,"shadowReceived": true,"fogging": true,"arms": [1,0.4,0.2],"albedo": [0.3,0.7,0.8]}]}}},{"torus": {"entity": {"radius": 150,"axisType": 1,"rings": 50,"segments": 30,"transform": {"position": [0,230,0]},"materials": [{"type": "default","lighting": true,"shadow": true,"shadowReceived": true,"fogging": true,"arms": [1,0.2,0.2],"albedo": [0.2,0.5,0.8]}]}}},{"model": {"entity": {"url": "static/assets/draco/monkey.drc","transform": {"position": [0,380,0],"scale": [100,100,100],"rotation": [0,90,0]},"materials": [{"type": "default","lighting": true,"shadow": true,"shadowReceived": true,"fogging": true,"arms": [1,0.5,0.2],"albedo": [0.6,0.3,0.8]}]}}},{"cube": {"entity": {"size": 2050,"normalScale": -1,"materials": [{"type": "default","lighting": true,"fogging": true,"arms": [1,0.3,0.2],"albedo": [0.3,0.3,0.7],"faceCullMode": "front"}]}}},{"gltf": {"entity": {}}},{"usd": {"entity": {}}}]
}

代码:

export class DataDrivenScene2 {private mScene = new DataDrivenRScene();initialize(): void {let url = "static/assets/scene/sceneData02.json";new HttpFileLoader().loadJson(url,(json: object, url: string): void => {console.log("json: ", json);this.initScene(json);});}private initScene(json: object): void {this.mScene.initialize(json);this.initEvent();}private initEvent(): void {const rc = this.mScene;new MouseInteraction().initialize(rc.rscene, 0, false).setAutoRunning(true);}run(): void {this.mScene.run();}
}

http://www.dt0577.cn/news/16369.html

相关文章:

  • 东莞品牌型网站建设长沙网站seo优化
  • 利用已有网站 制作社群营销策略有哪些
  • 竟标网站源码网络营销期末考试题库
  • 阜阳网站制作公司报价有什么引流客源的软件
  • 网站图片上的水印怎么做公司关键词seo
  • 做电力招聘的有哪些网站厦门seo计费
  • css网站下拉菜单怎么做网站推广的目的
  • 外卖网站开发seo快速收录快速排名
  • 互联网App网站建设方案公司做网络推广哪个网站好
  • net后缀的可以做网站吗真正免费建站网站
  • 免费二级域名注册网站新东方烹饪学校学费一年多少钱
  • 做响应式网站图片需要做几版seo网络营销技巧
  • 哪里长沙网站开发电商培训大概多少学费
  • 招标网站开发微商怎么找客源人脉
  • 无许可证做新闻网站会怎么样发广告推广平台
  • excel做网站二维码百度推广代理公司哪家好
  • 凡科网做网站能达到什么效果app运营方案
  • php class 做网站武汉网站seo推广
  • wordpress minty宁德seo培训
  • 网站提交了被收录后改怎么做免费网站在线客服软件
  • 南宁网站建设王道下拉強百度问一问人工客服怎么联系
  • 帮人管理网站做淘宝客全国新冠疫情最新消息
  • 现在做推广有什么好的方法苏州seo关键词优化报价
  • 网站建设吉金手指排名14如何网络媒体推广
  • 怎么用php语言做网站在线培训app
  • 社群小程序搭建外链seo招聘
  • 自己网站给别人网站做外链seo学徒
  • 网站banner设计价格安全优化大师
  • iis能搭WordPress网站seo优化方案设计
  • 北京个人网站建设新东方雅思培训价目表