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

大约有 26 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0031 秒)

1. laya.d3.terrain.TerrainLeaf [ 100%]

...ix4x4, maxScale:Number):voidTerrainLeaf  calcLODErrors(terrainHeightData:Float32Array, heighDataWidth:int, heightDataHeight:int):voidTerrainLeaf  calcOriginalBoudingBoxAndSphere():voidTerrainLeaf  calcSkirtVertextBuffer(offsetChunkX:int, offsetChunkZ:int, beginX:int, beginZ:int, girdSize:int, ...

来源: Laya2.0_api 发布时间: 20190513

2. laya.ani.bone.canvasmesh.SkinMeshForGraphic_API3.0 [ 94%]

...Defined in laya/ani/bone/canvasmesh/MeshData.ts:33 uv变换矩阵 uvs uvs: Float32Array = new Float32Array([0, 0, 1, 0, 1, 1, 0, 1]) Inherited from MeshData.uvs Defined in laya/ani/bone/canvasmesh/MeshData.ts:18 uv数据 vertices vertices: Float32Array = new Float32Array([0, 0, 100, 0, 100, 100, 0, ...

来源: Laya3.0_api 发布时间: 20231115

3. laya.d3.renderobjs.nativeobj.NativeSkinRenderElementOBJ_API3.0 [ 91%]

...nderObjs/NativeOBJ/NativeRenderElementOBJ.ts:83 _skinnedData _skinnedData: Float32Array[] Defined in laya/d3/RenderObjs/NativeOBJ/NativeSkinRenderElementOBJ.ts:7 Accessors _geometry get _geometry(): IRenderGeometryElement set _geometry(data: IRenderGeometryElement): void Inherited from NativeRenderE...

来源: Laya3.0_api 发布时间: 20231115

4. 分享一个Shader版的CoolDown实现 [ 88%]

...            var ps: string = " \             precision mediump float; \             varying vec2 v_texcoord; \             varying vec4 v_color; \             uniform sampler2D texture; \             uniform float progress;\             uniform vec4 uv_info;...

来源: Laya_社区 发布时间: 20170606

5. socket大型项目回调 [ 84%]

... { uInt32 : 0, sInt32 : 0, int32 : 0, double : 1, string : 2, message : 2, float : 5 }; private static _clients:any = {}; private static _servers:any = {}; static init(protos:any):void{ this._clients = protos && protos.client || {}; this._servers = protos && protos.server || {}; } st...

来源: Laya_社区 发布时间: 20180119

6. shader报错 [ 80%]

...删掉,所以改成 if defined 了             precision highp float;             precision highp int;         #else             precision mediump float;             precision mediump int;         #endif 2021-11-26 0 0 分享 微博 QZONE 微信 为什么被折...

来源: Laya_社区 发布时间: 20211125

7. graphics绘制报错 [ 77%]

...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

8. 自定义shader-简单shader [ 77%]

...rldMat*a_Normal;}"; var ps = "#ifdef FSHIGHPRECISION\n" + "precision highp float;\n" + "#else\n" + "precision mediump float;\n" + "#endif\n" + "varying vec3 v_Normal;\n" + "void main(){\n" + "gl_FragColor=vec4(v_Normal,1.0);}\n"; Laya.ShaderCompile3D.add(customShader, vs, ps, attributeMap, uniformMa...

来源: Laya_示例 发布时间: 20241123

9. 继承自Laya.BaseMaterial并且自定义Shader的的自定义材质如何设置透明渲染 [ 76%]

...gl_Position); }`; var ps:string = ` #ifdef FSHIGHPRECISION precision highp float; #else precision mediump float; #endif uniform sampler2D u_MainTex; uniform vec3 u_MainCol; varying vec3 v_Normal; varying vec2 uv; varying vec4 worldPos; void main() { vec4 col = texture2D(u_MainTex, uv); //gl_FragColo...

来源: Laya_社区 发布时间: 20190814

10. laya.d3.renderobjs.nativeobj.NativeInstanceRenderElementOBJ_API3.0 [ 73%]

...3 Returns void getUpdateData getUpdateData(index: number, length: number): Float32Array Defined in laya/d3/RenderObjs/NativeOBJ/NativeInstanceRenderElementOBJ.ts:30 Parameters index: number index of Buffer3D length: number length of array Returns Float32Array init init(): void Overrides NativeRender...

来源: Laya3.0_api 发布时间: 20231115