• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 246 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0038 秒)

161. laya阴影问题 [ 65%]

...a.BoxColliderShape(b, 0, c); } this.MainScene3D.addChild(cardOne); cardOne.transform.position = pos; cardOne.transform.rotate(new Laya.Vector3(0,0,0), false, false); if(index == 0){ cardOne.meshRenderer.receiveShadow = true; }else{ var unlitMat = new Laya.PBRStandardMaterial(); var texture: Laya.Tex...

来源: Laya_社区 发布时间: 20191223

162. 场景环境反射(TypeScript-3D基础(TS)-LayaAir3D之场景渲染配置) [ 65%]

...nction(mesh){ teapot = scene.addChild(new Laya.MeshSprite3D(mesh)); teapot.transform.position = new Laya.Vector3(0, 1.75, 2); teapot.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); })); //加载纹理 Laya.Texture2D.load("res/threeDimen/pbr/jinshu.jpg", Laya.Handler.create(null, functio...

来源: Laya2.0_文档 发布时间: 20210715

163. Effect材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 65%]

...ild(new MeshSprite3D(PrimitiveMesh.createSphere())) as MeshSprite3D; earth.transform.position = new Vector3(0, 0, 0); //创建EffectMaterial材质 var material:EffectMaterial = new EffectMaterial(); //加载地球贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function...

来源: Laya2.0_文档 发布时间: 20210715

164. 场景环境反射(JavaScript-3D基础(JS)-LayaAir3D之场景渲染配置) [ 65%]

...ction(mesh) { teapot = scene.addChild(new Laya.MeshSprite3D(mesh)); teapot.transform.position = new Laya.Vector3(0, 1.75, 2); teapot.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); })); //实例PBR材质 var pbrMat = new Laya.PBRStandardMaterial(); //开启该材质的反射 pbrMat.enab...

来源: Laya2.0_文档 发布时间: 20210715

165. 我就在unity中加了一个cube,导出后,在laya预览中怎么会有2个cube,而且位置还不一样,也没有贴图 [ 65%]

...; //加载到场景 scene.addChild(camera); //移动摄像机位置 camera.transform.position=new Laya.Vector3(-8, 4, 15); //旋转摄像机角度 camera.transform.rotate(new Laya.Vector3( -8, -25, 0), true, false); } return scene; }()); scene(); 附件 : --> 2018-01-08 添加评论 免费帖 --> ...

来源: Laya_社区 发布时间: 20180108

166. PointLight介绍(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 65%]

... Laya.PointLight()) as Laya.PointLight; //设置点光源位置 pointLight.transform.position = new Laya.Vector3(0.4, 0.4, 0.0); //设置点光源的范围 pointLight.range = 6.0; ``` **range** 为设置点光源的范围,相当于点光的照射范围,数值越大,光照范围越大。 图1...

来源: Laya2.0_文档 发布时间: 20210714

167. 场景环境反射(ActionScript-3D基础(AS3)-LayaAir3D之场景渲染配置) [ 65%]

... { teapot = scene.addChild(new MeshSprite3D(mesh)) as MeshSprite3D; teapot.transform.position = new Vector3(0, 1.75, 2); teapot.transform.rotate(new Vector3(-90, 0, 0), false, false); })); //实例PBR材质 var pbrMat:PBRStandardMaterial = new PBRStandardMaterial(); //开启该材质的反射 pbrMat...

来源: Laya2.0_文档 发布时间: 20210715

168. PointLight介绍(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 64%]

...dChild(new PointLight()) as PointLight; //设置点光源位置 pointLight.transform.position = new Vector3(0.4, 0.4, 0.0); //设置点光源的范围 pointLight.range = 6.0; ``` **range** 为设置点光源的范围,相当于点光的照射范围,数值越大,光照范围越大。 图1中因...

来源: Laya2.0_文档 发布时间: 20210715

169. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 64%]

...     this.camera = new Laya.Camera();         this.camera.transform.translate(new Laya.Vector3(0, 2, 5));         this.camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false);          this.scene.addChild(this.camera);         Laya.loader.cr...

来源: Laya_社区 发布时间: 20191102

170. 1.5版本:3D Camera无法使用? [ 64%]

...ene.addChild(new Laya.Camera(0, 1, 1000))) as Laya.BaseCamera; this.camera.transform.translate(new Vector3(0, 0, 500)); 这样用即可! 2016-10-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 JUNLIU 相关问题 2.0一不小心删...

来源: Laya_社区 发布时间: 20161017