大约有 85 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0039 秒)
...创建三维向量。 Public Properties PropertyDefined By elements : Float32Array[只读]向量元素集合。ConchVector3 x : Number 获取X轴坐标。 ConchVector3 y : Number 获取Y轴坐标。 ConchVector3 z : Number 获取Z轴坐标。 ConchVector3Public Methods MethodDefined B...
来源: Laya2.0_api 发布时间: 20190513
...his.byte.writeInt16(20); //写入一个32位的浮点数据 this.byte.writeFloat32(20.5); // 写入一个字符串; this.byte.writeUTFString("hello"); //这里声明一个临时Byte类型 var by:Laya.Byte = new Laya.Byte(); //设置endian; by.endian = Laya.Byte.LITTLE_ENDIAN; //写入一个int32...
来源: Laya3.0_文档 发布时间: 20250104
...个四维向量是否相等。 Vector4 forNativeElement(nativeElements:Float32Array = null):voidVector4 fromArray(array:Array, offset:int = 0):void 从Array数组拷贝值。 Vector4 length():Number 求四维向量的长度。 Vector4 lengthSquared():Number 求四维向量长度的平方...
来源: Laya2.0_api 发布时间: 20190513
...,还有不同类型直接的赋值。 比如用int类型变量去接收float类型的值 Monica • 2017-10-26 12:02 @momo199059:跟你确认个问题,你说的这个是在LayaAir里边的还是LayaFlash里边的呢? momo199059 • 2017-10-26 15:16 @Monica:LayaAir momo199059 • 2017-10-26 18:...
来源: Laya_社区 发布时间: 20171025
...ean):void 设置布尔。 BaseMaterial _setBuffer(shaderIndex:int, buffer:Float32Array):void 设置Buffer。 BaseMaterial _setColor(shaderIndex:int, color:*):void 设置颜色。 BaseMaterial _setInt(shaderIndex:int, i:int):void 设置整型。 BaseMaterial _setMatrix4x4(shaderIndex:int, matrix4...
来源: laya_api 发布时间: 20170929
...ean):void 设置布尔。 BaseMaterial _setBuffer(shaderIndex:int, buffer:Float32Array):void 设置Buffer。 BaseMaterial _setColor(shaderIndex:int, color:*):void 设置颜色。 BaseMaterial _setInt(shaderIndex:int, i:int):void 设置整型。 BaseMaterial _setMatrix4x4(shaderIndex:int, matrix4...
来源: laya_api 发布时间: 20170603
...度问题 在自定义shader的片面着色器中定义了一个 uniform float u_PosArray[1000]; 然后我在pc端运行没有问题,用手机浏览器扫码会报 laya.d3.js:28579 Uncaught ERROR: too many uniforms 然后试了一下数组长度手机端限制在256,不同情况下长度更...
来源: Laya_社区 发布时间: 20200313
...ec4 a_Position; attribute vec3 a_Normal; uniform mat4 u_MvpMatrix; uniform float u_OutlineWidth; void main() { vec4 position = vec4(a_Position.xyz + a_Normal * u_OutlineWidth, 1.0); gl_Position = u_MvpMatrix * position; } ``` 片元着色器 `outline.fs` 代码如下: ```c++ #ifdef FSHIGHPRECISION p...
来源: Laya2.0_文档 发布时间: 20210715
...ean):void 设置布尔。 BaseMaterial _setBuffer(shaderIndex:int, buffer:Float32Array):void 设置Buffer。 BaseMaterial _setColor(shaderIndex:int, color:*):void 设置颜色。 BaseMaterial _setInt(shaderIndex:int, i:int):void 设置整型。 BaseMaterial _setMatrix4x4(shaderIndex:int, matrix4...
来源: laya_api 发布时间: 20170929
...ec4 a_Position; attribute vec3 a_Normal; uniform mat4 u_MvpMatrix; uniform float u_OutlineWidth; void main() { vec4 position = vec4(a_Position.xyz + a_Normal * u_OutlineWidth, 1.0); gl_Position = u_MvpMatrix * position; } ``` 片元着色器 `outline.fs` 代码如下: ```c++ #ifdef FSHIGHPRECISION p...
来源: Laya2.0_文档 发布时间: 20210715