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

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

101. 3D开启多线程报错 [ 78%]

...text': No function was found that matched the signature provided.     at Texture2D.__proto._createWebGlTexture (laya.d3.js:37225)     at Texture2D.__proto.recreateResource (laya.d3.js:37271)     at Texture2D.__proto.onAsynLoaded (laya.d3.js:37329)     at ResInfo.onLoaded (laya.core.js:13189)...

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

102. 射线检测-点击行走 [ 78%]

...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_示例 发布时间: 20240929

103. 3D开启多线程报错 [ 78%]

...text': No function was found that matched the signature provided.     at Texture2D.__proto._createWebGlTexture (laya.d3.js:37225)     at Texture2D.__proto.recreateResource (laya.d3.js:37271)     at Texture2D.__proto.onAsynLoaded (laya.d3.js:37329)     at ResInfo.onLoaded (laya.core.js:13189)...

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

104. laya.net.Loader_API3.0 [ 78%]

...CHY IMAGE JSON MATERIAL MESH SOUND SPINE TERRAINHEIGHTDATA TERRAINRES TEXT TEXTURE2D TEXTURECUBE TTF VIDEO XML downloader extMap groupMap loadedMap preLoadedMap typeMap Accessors loading Methods cacheRes cancelLoadByUrl cancelLoadByUrls clearRes clearTextureRes clearUnLoaded event fetch getRes hasLi...

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

105. 图层叠加的实现 [ 78%]

...只是不知道怎么把绘制出来的新纹理变成3D模型能识别的texture2d的贴图? 2018-06-05 0 0 分享 微博 QZONE 微信 伐木工人 赞同来自: 没必要用laya2d来做,可以直接用原生canvas-2d来叠加图层产生新图片,然后转base64字符串,然后转HTMLImage...

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

106. [LayaAir3]laya3.0.9,使用Animation播放序列帧动画,引用计数问题 [ 78%]

...animation,loadAtlas后,AtlasResource的_referenceCount是0,对应的Texture2D的_referenceCount是AtlasResource中使用的次数,当animation执行destyoy后,AtlasResource和Texture2D的_referenceCount没有变化,再次创建后AtlasResource的_referenceCount依旧是0,对应的Textu...

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

107. 使用 setPixels 设置像素,会同时修改掉其他图片的像素 [ 76%]

...会同时修改掉其他图片的像素;就几句代码 let bitmap:Laya.Texture2D = this.bg2.source.bitmap as Laya.Texture2D; let pixels = bitmap.getPixels(); console.log("pixels:",pixels); for (let i = 0; i < pixels.length; i += 1) { pixels[i] = 0 } bitmap.setPixels(pixels,0) 是这样的。de...

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

108. Unity导出的光照贴图带有Alpha但Shader中没有使用,Laya是否在加载PNG的时候有预乘Alpha? [ 76%]

... 例如Mesh-BlinnPhong.ps这个文件中: #ifdef LIGHTMAP finalDiffuse=texture2D(u_LightMap, v_LightMapUV).rgb*2.0; //float exponent = texture2D(u_LightMap, v_LightMapUV).a; //finalDiffuse = texture2D(u_LightMap, v_LightMapUV).rgb; //float ratio = pow(2.0, exponent * 255.0 - (128.0 + 8.0)); //fina...

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

109. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 75%]

... ​ 在2D中,图片使用的是`Texture`纹理(注意不是3D中的`Texture2D`)。但是实质上Texture就是对Texture2D的再封装,Texture的 `bitmap` 属性就是他所属的Texture2D ,Texture本身是记录了Texture2的uv属性,来实现图集中的单图片显示。 ​ 所以...

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

110. 材质-BlinnPhong-漫反射贴图 [ 75%]

...Laya.BlinnPhongMaterial(); //漫反射贴图 material.albedoTexture = Laya.Texture2D.load("../../res/threeDimen/texture/earth.png"); earth2.meshRender.material = material; Laya.timer.frameLoop(1, this, function () { earth1.transform.rotate(this.rotation, false); earth2.transform.rotate(this.rotation...

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