大约有 99 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0034 秒)
...al.xy * 0.04; }` var outline_ps = ` #ifdef FSHIGHPRECISION precision highp float; #else precision mediump float; #endif varying vec3 v_Normal; void main() { gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0); }` var base_vs = ` attribute vec4 a_Position; attribute vec2 a_Texcoord; attribute vec3 a_Normal; vary...
来源: Laya_社区 发布时间: 20180925
..._createColorBufferData() { //随机给20个颜色值 let colorBuffer = new Float32Array(20 * 4); for (var i = 0; i < this._colorNums; i++) { let offset = i * 4; colorBuffer[offset] = Math.random(); colorBuffer[offset + 1] = Math.random(); colorBuffer[offset + 2] = Math.random(); colorBuffer[offse...
来源: Laya3.0_文档 发布时间: 20251010
... _vlen = 8 * Laya.CONST3D2D.BYTES_PE this.position = [2, Laya.WebGLContext.FLOAT, false, _vlen, 0] this.texcoord = [2, Laya.WebGLContext.FLOAT, false, _vlen, 2 * Laya.CONST3D2D.BYTES_PE] this.color = [4, Laya.WebGLContext.FLOAT, false, _vlen, 4 * Laya.CONST3D2D.BYTES_PE] } } sprite.customRende...
来源: Laya_社区 发布时间: 20180313
...vert (inout appdata_full v) { float4 vPos = mul (UNITY_MATRIX_MV, v.vertex); float zOff = vPos.z/_Dist; vPos += _QOffset*zOff*zOff; v.vertex = mul(transpose(UNITY_MATRIX_I...
来源: Laya_社区 发布时间: 20190227
..._NAME baseRender2D #if defined(GL_FRAGMENT_PRECISION_HIGH) precision highp float; #else precision mediump float; #endif #include "Sprite2DFrag.glsl"; void main() { clip(); vec4 textureColor = texture2D(u_baseRender2DTexture, v_texcoord); // 计算渐变因子 float gradientFactor = dot(v_texcoord, n...
来源: Laya3.0_文档 发布时间: 20251120
...vivo,oppo真机报错,报错错信息如下 Cannot read property 'HALF_FLOAT_OES' of null;at requestAnimationFrame callback function TypeError: Cannot read property 'HALF_FLOAT_OES' of null at RenderTexture._texImage2D (game.js:18:184542) 引擎源代码出错位置如图: 浏览器和微信...
来源: Laya_社区 发布时间: 20190902
...nk, chunkOffsetX:int, chunkOffsetZ:int, gridSize:Number, terrainHeightData:Float32Array, heightDataWidth:int, heightDataHeight:int, cameraCoordinateInverse:Boolean) 创建一个新的 MeshFilter 实例。 TerrainFilter _getIndexBuffer():IndexBuffer3DTerrainFilter _getType():int[override] 获...
来源: Laya2.0_api 发布时间: 20190513
...te(); Laya.stage.addChild(sp); sp.graphics.drawTriangles( tex, 100, 0, new Float32Array([0,0,1,0,1,1,0,1]), new Float32Array([0,0,1,0,1,1,0,1]), new Uint16Array([0,1,2,2,3,0]) ); sp.graphics.drawImage(tex, 100, 0); })); } } new Sprite_DisplayImage(); 贴入官方引擎示例重现 附件 : --> 2019-...
来源: Laya_社区 发布时间: 20190829
...t = this.lb; lb.width = 100; lb.height = 24; const html1 = '<div style="float:right;"><span>1</span><span>2</span></div>'; const html2 = '<span style="float:right;">1</span>'; const html3 = '<div style="width:50;text-align:right;"><span>1&l...
来源: Laya_社区 发布时间: 20190531
...量类型 uniform变量的常见类型:Texture2D,Vector2,Vector4,Float,Matrix4x4。 Texture2D:用于2D纹理采样的图片类型。 Vector2:二维向量,用于2D的坐标位置表示。 Vector4:四维向量,用于表示颜色。 Float:浮点类型。 Matrix4X4:4X4齐次矩...
来源: Laya3.0_文档 发布时间: 20251010