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

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

1. 3D基础显示对象 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

...iveMesh.createBox(0.5, 0.5, 0.5); //球体 Laya.PrimitiveMesh.createSphere(0.25, 20, 20); //圆柱体 Laya.PrimitiveMesh.createCylinder(0.25, 1, 20); //胶囊体 Laya.PrimitiveMesh.createCapsule(0.25, 1, 10, 20); //圆锥体 Laya.PrimitiveMesh.createCone(0.25, 0.75); //平面 Laya.PrimitiveMesh.crea...

来源: Laya3.0_文档 发布时间: 20251010

2. 2D方向光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

...ty = 0.2; } else if (progress < 0.375) { const t = (progress - 0.125) / 0.25; intensity = 0.2 + t * 0.8; } else if (progress < 0.708) { intensity = 1.0; } else if (progress < 0.833) { const t = (progress - 0.708) / 0.125; intensity = 1.0 - t * 0.8; } else { intensity = 0.2; } this.lightComp...

来源: Laya3.0_文档 发布时间: 20251010

3. 网格像素线 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...(Laya.MeshFilter); sphereMesh.sharedMesh = Laya.PrimitiveMesh.createSphere(0.25, 20, 20); let sphereRender = sphere.addComponent(Laya.MeshRenderer); // 为球体添加像素线渲染精灵 let sphereLineSprite3D: Laya.PixelLineSprite3D = new Laya.PixelLineSprite3D(3500); this.scene.addChild(sphereLi...

来源: Laya3.0_文档 发布时间: 20251010

4. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

...6-2所示, (图6-2) 假如我们将屏幕水平位置起点X设置为0.25,屏幕垂直位置起点Y设置为0.25,宽度W设为0.5,高度H设为0.5,在LayaAir中效果如图6-3所示。 (图6-3) 6.2 深度贴图 Depth Texture Mode:深度贴图模式。 None:不生成深度贴图...

来源: Laya3.0_文档 发布时间: 20251010

5. 绘制能力 · LayaAir3.3 · 引擎文档 · LAYABOX [ 17%]

...中的 t 会经过由 P0 至 P1 的 B(t) 所描述的曲线。例如当 t=0.25 时,B(t) 即一条由点 P0 至 P1 路径的四分之一处。就像由 0 至 1 的连续 t,B(t) 描述一条由 P0 至 P1 的直线。 6.1.2 二次贝塞尔曲线 (动图6-2) (动图6-3) 说明:为建构二...

来源: Laya3.0_文档 发布时间: 20251010

6. 3D物理系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 14%]

...erer); // 创建网格 coneMesh.sharedMesh = Laya.PrimitiveMesh.createCone(0.25, 0.75); // 创建材质 let coneMaterial: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); coneRender.sharedMaterial = coneMaterial; //把圆锥形3D节点对象添加到3D场景节点下 this.scene.addChild(cone...

来源: Laya3.0_文档 发布时间: 20251010