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

大约有 37 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0036 秒)

11. 微信小游戏wxmin图片加载有点问题 [ 83%]

...相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionL...

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

12. 3D网格添加刚体后设置欧拉角出现位置错误 [ 82%]

...ra = this.scene.addChild(new Laya.Camera(0, 0.1, 100));         camera.transform.translate(new Laya.Vector3(0, 6, 9.5));         camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false);         camera.addComponent(CameraMoveScript);         camera.clearFlag = Laya.BaseCamer...

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

13. 官方LayaAir之灯光一节示例背景在微信里表现不一致 [ 81%]

...; //加载到场景 scene.addChild(camera); //移动摄像机位置 camera.transform.translate(new Laya.Vector3(0, 4, 8)); //旋转摄像机角度 camera.transform.rotate(new Laya.Vector3( -30, 0, 0), true, false); //创建方向光 var light:Laya.DirectionLight = scene.addChild(new Laya.DirectionLi...

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

14. unity导出的场景不显示实时阴影 [ 81%]

...ht = scene.addChild(new Laya.DirectionLight) as Laya.DirectionLight; light.transform.rotate(new Laya.Vector3(-120, 0, 0), false, false); light.shadow = true; light.shadowDistance = 150; light.shadowResolution = 2048; light.shadowPSSMCount = 1; light.shadowPCFType = 3;  let plane: Laya.MeshSprite3D ...

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

15. 关于Laya.Tween 在3d上的应用与缓动的优化 [ 81%]

...   // 如下             /**             sp3d.transform.localPosition = origin;             sp3d.transform.localRotationEuler = origin;             sp3d.transform.localScale = origin;             */         })       同...

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

16. StaticModel_MeshSample例子运行不起来 [ 80%]

...ddChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera;         camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5));         camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false);         var mesh = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/thre...

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

17. 获取相机renderTexture 作为阴影 的UV [ 80%]

...设置u_ShadowMapTex     onUpdate(){         this.ShadowCamera.transform.lookAt(new Vector3(0,0,0), new Vector3(0,1,0), false);         let v:Matrix4x4 = this.ShadowCamera.viewMatrix;         let p:Matrix4x4 = this.ShadowCamera.projectionMatrix;         ...

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

18. LayaAir3D 坐标系统与矩阵变换 [ 80%]

...相机 var camera:Camera = scene.addChild(new Camera()) as Camera; camera.transform.position = new Vector3(0, 3, 3); camera.transform.rotate(new Vector3( -45, 0, 0), true, false); camera.addComponent(CameraMoveScript); //生成平面,其实是一个box,只不过高度很小,可看成一个平...

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

19. [BUG]刚体约束问题,移动后约束混乱! [ 76%]

...addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera;     camera.transform.translate(new Laya.Vector3(0, 3, 30));          //方向光     const directionLight =this.newScene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight;     directionLight.color = ne...

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

20. WaterPrimaryMaterial的使用 [ 76%]

...aya.MeshSprite3D(new Laya.PlaneMesh(10, 10))) as Laya.MeshSprite3D; // box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); // var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); // var material: Laya.WaterPrimaryMaterial = new Laya.WaterPrimaryMaterial(); var material:...

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