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

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

91. laya.loaders.TextureLoader_API3.0 [ 81%]

...Returns Promise<Texture> wrapTex2D wrapTex2D(task: ILoadTask, tex2D: Texture2D): Texture Defined in laya/loaders/TextureLoader.ts:213 Parameters task: ILoadTask tex2D: Texture2D Returns Texture Globals "laya/loaders/TextureLoader" RenderTextureLoader Texture2DLoader TextureLoader load wrapTex2...

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

92. worker.js 使用问题 [ 81%]

...text': No function was found that matched the signature provided.     at Texture2D.__proto._createWebGlTexture (laya.d3.js:33519)     at Texture2D.__proto.recreateResource (laya.d3.js:33562)     at Texture2D.__proto.activeResource (laya.core.js:13234)     at Texture2D.<anonymous> (laya...

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

93. LayaAir3D UnityPlugin 1.7.16 [ 81%]

... strive 赞同来自: 这是跑错的异常: Unsupported texture format - Texture2D::EncodeTo functions do not support compressed texture formats. UnityEngine.Texture2D:EncodeToPNG() LayaExport.DataManager:saveTextureFile(JSONObject, Texture2D, String, String, String) LayaExport.DataManager:saveLaya...

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

94. Unlit材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 80%]

...it材质 var material2:UnlitMaterial = new UnlitMaterial(); //加载纹理 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置反照率贴图 material2.albedoTexture = texture; })); earth2.meshRenderer.material = material2; ``` ![](img/...

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

95. 使用setsubpixel函数对图片进行纹理像素填充,安卓端微信不正常 [ 80%]

...urls.push({ url: ResourcesManager.inst.brush_test_green, clas: Laya.Loader.TEXTURE2D,constructParams:[100, 100, 1, false, true]});   //开始填充     public fillPlane(){         let brush = Laya.loader.getRes(ResourcesManager.inst.brush_test_green) as Laya.Texture2D;         let ...

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

96. 射线检测-放置物体 [ 80%]

...var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.me...

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

97. 显存优化:纹理压缩的使用(TypeScript-2D进阶篇(TS)-性能优化) [ 80%]

...3D纹理的使用 3D的png或者jpg格式纹理加载,是使用的`Laya.Texture2D.load()`来加载纹理资源,如果要使用纹理压缩格式,则需要使用`Laya.loader.load()`来加载纹理资源。 示例代码如下所示: ```typescript //检测安卓平台 if (Laya.Browser.onAndroid...

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

98. 寻路导航示例中添加Laya.PathFind组件报异常 [ 80%]

...行走区域模型隐藏 meshSprite3D.active = false; var heightMap: Laya.Texture2D = Laya.Loader.getRes("../../res/threeDimen/scene/TerrainScene/Assets/HeightMap.png") as Laya.Texture2D; //初始化MeshTerrainSprite3D this.terrainSprite = Laya.MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSpri...

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

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

...edoColor: { type: Color, default: [1, 1, 1, 1] }, u_AlbedoTexture: { type: Texture2D, options: { define: "ALBEDOTEXTURE" } }, u_NormalTexture: { type: Texture2D, options: { define: "NORMALTEXTURE" } }, u_NormalScale: { type: Float, default: 1.0, range: [0.0, 2.0] }, u_Metallic: { type: Float, defaul...

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

100. 同时使用雾和粒子系统,粒子的颜色变成雾的颜色 [ 78%]

...if(v_Discard!=0.0)    discard;   #ifdef TINTCOLOR    gl_FragColor*=texture2D(u_texture,v_TextureCoordinate)*u_Tintcolor*2.0*v_Color;   #else    gl_FragColor*=texture2D(u_texture,v_TextureCoordinate)*v_Color;   #endif  #else   #ifdef TINTCOLOR    gl_FragColor*=u_Tintcolor*2.0*v_C...

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