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

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

81. 安卓app加载场景错误 [ 79%]

...ateTexture(); ^ TypeError: Cannot read property 'createTexture' of null at Texture2D.__proto._createWebGlTexture (http://192.167.0.100/h5/layawe ... 756:32) at Texture2D.__proto.recreateResource (http://192.167.0.100/h5/layawe ... 6810:8) at Texture2D.__proto.onAsynLoaded (http://192.167.0.100/h5/la...

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

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

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

83. 3D开启多线程报错 [ 79%]

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

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

85. 2.0 怎么样才能将htmlcanvas 的东西 显示在texture上? [ 78%]

...0 最新版 接口变了, Texture 的drawto public function setTo(bitmap:Texture2D = null, uv:Array = null, sourceWidth:Number = 0, sourceHeight:Number = 0):void { 变成了Textrue2d了, 像以前1.x版本Textrue 还能用htmlcanvas,现在不能用了。而且直接强传入,会报错。 请...

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

86. 射线检测-放置物体 [ 77%]

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

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

88. laya.d3.core.scene.Lightmap_API3.0 [ 75%]

...ghtmapDirection ApplyLightmapEvent Properties lightmapColor lightmapColor: Texture2D Defined in laya/d3/core/scene/Lightmap.ts:9 光照贴图颜色。 lightmapDirection lightmapDirection: Texture2D Defined in laya/d3/core/scene/Lightmap.ts:11 光照贴图方向。 Static ApplyLightmapEvent ApplyLigh...

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

89. 高级应用-闪光 [ 75%]

...litter.glitterRender.sharedMaterial; glitterMaterial.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/layabox.png"); glitterMaterial.albedo = new Laya.Vector4(1.3, 1.3, 1.3, 1); glitterTemplet.lifeTime = 1.3; glitterTemplet.minSegmentDistance = 0.1; glitterTemplet.minInterpDistance = 0.6; ...

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

90. 关于Texture的nv [ 75%]

...回复问题请先登录 发起人 tobe 相关问题 Texture如何转换成Texture2D有人搞过吗 Texture,和Texture2D如何互转? 微信真机下游戏MAX_TEXTURE_SIZE 微信小游戏 sharedCanvas 创建的Texture,能否再调用Texture.createFromTexture创建新纹理 请问layabox支持rende...

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