大约有 1,207 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0043 秒)
Laya_社区(573) Laya3.0_api(166) Laya2.0_文档(165) Laya2.0_api(116) laya_api(115) Laya_示例(43) Laya3.0_文档(29)
... scene.enableFog = true; //设置雾化的颜色 scene.fogColor = new Laya.Vector3(0,0,0.6); //设置雾化的起始位置,相对于相机的距离 scene.fogStart = 10; //设置雾化最浓处的距离。 scene.fogRange = 40; ``` 效果显示(图4): (图4)
来源: Laya2.0_文档 发布时间: 20210714
... scene.enableFog = true; //设置雾化的颜色 scene.fogColor = new Laya.Vector3(0,0,0.6); //设置雾化的起始位置,相对于相机的距离 scene.fogStart = 10; //设置雾化最浓处的距离。 scene.fogRange = 40; ``` 效果显示(图4): (图4)
来源: Laya2.0_文档 发布时间: 20210715
...true; mat.stencilRef = 2; mat.stencilOp = new Laya.Vector3(Laya.RenderState.STENCILOP_KEEP, Laya.RenderState.STENCILOP_KEEP, Laya.RenderState.STENCILOP_REPLACE) skin.material = mat; } 附件 : --> 2023-12-28 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20231228
...3D(new Laya.PlaneMesh(200, 50, 1, 1))); plane.transform.translate(new Laya.Vector3(0, -0.4, 0)); var material1 = new Laya.StandardMaterial(); material1.diffuseTexture = Laya.Texture2D.load("http://192.168.1.41/brick_diffuse.jpg"); plane.meshRender.material = material1; 2018-01-25 添加评...
来源: Laya_社区 发布时间: 20180125
...起来像天空一样。 #### 主要属性和方法 > 属性 `tintColor:Vector4` 颜色。 `exposure:Number` 曝光强度。 `textureCube:TextureCube` 天空盒纹理。 #### 创建和使用材质 下面的代码来自于官方示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language...
来源: Laya2.0_文档 发布时间: 20210715
...起来像天空一样。 #### 主要属性和方法 > 属性 `tintColor:Vector4` 颜色。 `exposure:Number` 曝光强度。 `textureCube:TextureCube` 天空盒纹理。 #### 创建和使用材质 下面的代码来自于官方示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language...
来源: Laya2.0_文档 发布时间: 20210715
...yaAir新建3D示例项目,在as开发模式下,运行报错 TypeError: Vector3 is not a constructor 聊天消息对话框中new一个HTMLDivElement 报错"Illegal constructor",请问这个该怎么处理? 引擎SWF动画示例,提示 TypeError: MovieClip is not a constructor clas not a const...
来源: Laya_社区 发布时间: 20181207
...接 提交 1 个回复 158*****364 赞同来自: this.mousePos = new Laya.Vector2(Laya.MouseManager.instance.mouseX, Laya.MouseManager.instance.mouseY); //鼠标点击屏幕产生射线 this.camera.viewportPointToRay(this.mousePos, this.ray); var phy:Laya.PhysicsSimulation =...
来源: Laya_社区 发布时间: 20190505
... value: number Returns void lightmapScaleOffset get lightmapScaleOffset(): Vector4 set lightmapScaleOffset(value: Vector4): void Inherited from PixelLineRenderer.lightmapScaleOffset Defined in laya/d3/core/render/BaseRender.ts:269 光照贴图的缩放和偏移。 Returns Vector4 Inherited from Pixe...
来源: Laya3.0_api 发布时间: 20231115
... value: number Returns void lightmapScaleOffset get lightmapScaleOffset(): Vector4 set lightmapScaleOffset(value: Vector4): void Inherited from PixelLineRenderer.lightmapScaleOffset Defined in laya/d3/core/render/BaseRender.ts:269 光照贴图的缩放和偏移。 Returns Vector4 Inherited from Pixe...
来源: Laya3.0_api 发布时间: 20231115