大约有 4 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0044 秒)
...距离。 * @param isLocal 是否局部空间。 */ translate(translation: Vector3, isLocal: boolean = true): void { if (isLocal) { Matrix4x4.createFromQuaternion(this.localRotation, Transform3D._tempMatrix0); Vector3.transformCoordinate(translation, Transform3D._tempMatrix0, Transform3D._tempVector...
来源: Laya3.0_文档 发布时间: 20251010
.../3/4 定义一个向量类型,根据不同的分量数量分为Vector2、Vector3、Vector4 图6-4 6.4 Color 定义一个颜色值,通常存在RGBA四种分量的数据 图6-5 6.5 Define 宏定义,用于对宏条件的不同触发结果来执行不同的结果内容,效率高于if-else 图6-6...
来源: Laya3.0_文档 发布时间: 20251010
... 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
...变量类型 Uniform变量的常见类型:Texture2D,Color,Vector2,Vector3,Vector4,Bool,Float,Matrix4x4,TextureCube Texture2D用于2D纹理采样的图片类型,图片本地支持格式:JPG,PNG Color 颜色类型,为四个Float类型组成的向量值,单位为0-1范围的...
来源: Laya3.0_文档 发布时间: 20251010