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

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

611. DirectionLight介绍(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 72%]

... Laya.DirectionLight; //方向光的颜色 directionLight.color = new Laya.Vector3(1, 1, 1); //设置平行光的方向 var mat = directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); directionLight.transform.worldMatrix=mat; ``` ​ **setForward** 平行光的方...

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

612. laya.d3.core.scene.BoundsOctreeNode [ 72%]

...de(octree:BoundsOctree, parent:BoundsOctreeNode, baseLength:Number, center:Vector3) 创建一个 BoundsOctreeNode 实例。 BoundsOctreeNode  add(object:IOctreeObject):Boolean 添加指定物体。 BoundsOctreeNode  getBound():BoundBox 获取包围盒。 BoundsOctreeNode  getCollidingWithBound...

来源: Laya2.0_api 发布时间: 20190513

613. meshRender修改材质问题 [ 72%]

...se1.lh"); scene.addChild(warehouse1); warehouse1.transform.rotate(new Laya.Vector3(0, 90, 0), false, false); warehouse1.transform.translate(new Laya.Vector3(0,0,0),false); warehouseMeshSprite3D1= warehouse1.getChildAt(0).getChildByName("Mesh1"); var material = warehouseMeshSprite3D1.meshRender.mater...

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

614. 武器怎么绑定? [ 72%]

...ro-mon_1129.lm"));             roleMan.transform.localScale = new Vector3(0.01, 0.01, 0.01);             roleMan.transform.localPosition = new Vector3(0, -0.5, -3);             scene.addChild(roleMan);     男角色的武器模型是:hero-mon_1129wuqi.lm 2017-04-01 ...

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

615. StaticModel_MeshSample例子运行不起来 [ 72%]

...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/threeDimen/staticModel/sphere/sph...

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

616. laya.d3.renderobjs.nativeobj.NativeRenderOBJCreateUtil_API3.0 [ 72%]

...isTransparent: boolean Returns IRenderQueue createBounds createBounds(min: Vector3, max: Vector3): any Implementation of IRenderOBJCreate.createBounds Defined in laya/d3/RenderObjs/NativeOBJ/NativeRenderOBJCreateUtil.ts:54 Parameters min: Vector3 max: Vector3 Returns any createCameraCullInfo createC...

来源: Laya3.0_api 发布时间: 20231115

617. laya.d3.renderobjs.renderobj.RenderOBJCreateUtil_API3.0 [ 72%]

...isTransparent: boolean Returns IRenderQueue createBounds createBounds(min: Vector3, max: Vector3): any Implementation of IRenderOBJCreate.createBounds Defined in laya/d3/RenderObjs/RenderObj/RenderOBJCreateUtil.ts:53 Parameters min: Vector3 max: Vector3 Returns any createCameraCullInfo createCameraC...

来源: Laya3.0_api 发布时间: 20231115

618. laya.d3.renderobjs.nativeobj.NativeRenderContext3DOBJ_API3.0 [ 72%]

...Parameters sceneShaderData: ShaderData Returns void scissor get scissor(): Vector4 set scissor(scissor: Vector4): void Defined in laya/d3/RenderObjs/NativeOBJ/NativeRenderContext3DOBJ.ts:72 Returns Vector4 Defined in laya/d3/RenderObjs/NativeOBJ/NativeRenderContext3DOBJ.ts:67 Parameters scissor: Vec...

来源: Laya3.0_api 发布时间: 20231115

619. localRotationEulerY旋转位置错误 [ 72%]

...0)) as Laya.Camera;         camera.transform.translate(new Laya.Vector3(0, 6, 9.5));         camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false);          //方向光         var directionLight = new Laya.DirectionLight();         ...

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

620. DirectionLight介绍(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 72%]

...ight()) as DirectionLight; //方向光的颜色 directionLight.color = new Vector3(1, 1, 1); //设置平行光的方向 var mat:Matrix4x4 = directionLight.transform.worldMatrix; mat.setForward(new Vector3(-1.0, -1.0, -1.0)); directionLight.transform.worldMatrix=mat; ``` ​ **setForward** 平行光...

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