大约有 116 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0035 秒)
...码 scene.enableFog = true; //设置雾化的颜色 scene.fogColor = new Vector3(0,0,0.6); //设置雾化的起始位置,相对于相机的距离 scene.fogStart = 10; //设置雾化最浓处的距离。 scene.fogRange = 40; ``` 效果显示(图4): ![](img/4.png)(图4)
来源: Laya2.0_文档 发布时间: 20210715
...MethodDefined By BoundsOctree(initialWorldSize:Number, initialWorldPos:Vector3, minNodeSize:Number, looseness:Number) 创建一个 BoundsOctree 实例。 BoundsOctree add(object:IOctreeObject):void 添加物体 BoundsOctree addMotionObject(object:IOctreeObject):void 添加运动物体。 Bo...
来源: Laya2.0_api 发布时间: 20190513
...ate scene:Laya.Scene3D; private text:Laya.Text; private _upVector3:Laya.Vector3 = new Laya.Vector3(0, 1, 0); constructor() { this._upVector3 = new Laya.Vector3(0, 1, 0); Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stag...
来源: Laya_社区 发布时间: 20190531
...de(octree:BoundsOctree, parent:BoundsOctreeNode, baseLength:Number, center:Vector3) 创建一个 BoundsOctreeNode 实例。 BoundsOctreeNode add(object:IOctreeObject):Boolean 添加指定物体。 BoundsOctreeNode getBound():BoundBox 获取包围盒。 BoundsOctreeNode getCollidingWithBound...
来源: Laya2.0_api 发布时间: 20190513
...度。 TrailFilter _curtime : Number = 0TrailFilter _lastPosition : Vector3TrailFilter minVertexDistance : Number 获取新旧顶点之间最小距离。 TrailFilter _owner : TrailSprite3DTrailFilter textureMode : int 获取纹理模式。 TrailFilter time : Number 获取淡出时...
来源: Laya2.0_api 发布时间: 20190513
...t()) as Laya.SpotLight; //设置聚光灯颜色 spotLight.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方向 var mat = spotLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(0.15, -1.0, 0.0)); s...
来源: Laya2.0_文档 发布时间: 20210715
...Laya.SpotLight()); //设置聚光灯颜色 this.spotLight.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 this.spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方向 var mat = this.spotLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(0.15, -1.0...
来源: Laya2.0_文档 发布时间: 20210715
...谢 class MultiTouch{ private text:Laya.Text; private _upVector3:Laya.Vector3 = new Laya.Vector3(0, 1, 0); constructor(){ Laya.alertGlobalError = true; this._upVector3 = new Laya.Vector3(0, 1, 0); //初始化引擎 Laya3D.init(0, 0); La...
来源: Laya_社区 发布时间: 20190605
...w SpotLight()) as SpotLight; //设置聚光灯颜色 spotLight.color = new Vector3(1, 1, 0); //设置聚光灯位置 spotLight.transform.position = new Vector3(0.0, 1.2, 0.0); //设置聚光灯的方向 var mat:Matrix4x4 = spotLight.transform.worldMatrix; mat.setForward(new Vector3(0.15, -1.0, 0.0))...
来源: Laya2.0_文档 发布时间: 20210715
...动插值参数值 public camDepthSmooth: number = 20 public curpos: Laya.Vector3; private delatpos: Laya.Vector3; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 * 此方法为虚方法,使用时重写覆盖即...
来源: Laya3.0_文档 发布时间: 20241014