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

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

1. drawMeshInstance渲染指令的使用说明(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 100%]

...---------- | ------- | | setVectorArray() | Vector4 | | setVectorArray() | Vector3 | | setVector2Array() | Vector2 | | setNumberArray() | number | 当我们想渲染每一个Mesh的时候,就需要传入一个不同的颜色,而每一个颜色是一个Vector4的属性。 所以我们要传入一...

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

2. 自定义3D Shader · LayaAir3.4 · 引擎文档 · LAYABOX [ 69%]

...变量类型 Uniform变量的常见类型:Texture2D,Color,Vector2,Vector3,Vector4,Bool,Float,Matrix4x4,TextureCube Texture2D用于2D纹理采样的图片类型,图片本地支持格式:JPG,PNG Color 颜色类型,为四个Float类型组成的向量值,单位为0-1范围的...

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

3. 3D性能优化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 56%]

... colorIndex); } } private _getRandomPosition(positionRanvge: number): Laya.Vector3 { let getRangeRandom = () => { return (Math.random() - 0.5) * positionRanvge; } return new Laya.Vector3(getRangeRandom(), 0.3, getRangeRandom()); } } shader代码如下: Shader3D Start { type:Shader3D name:PBRCol...

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