大约有 458 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
Laya_社区(258) Laya3.0_api(91) Laya2.0_文档(60) Laya_示例(22) Laya3.0_文档(10) Laya2.0_api(10) laya_api(7)
... material:BlinnPhongMaterial = new BlinnPhongMaterial(); //漫反射贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置材质纹理 material.albedoTexture = texture; })); //material.albedoTexture earth2.meshRenderer.material = ma...
来源: Laya2.0_文档 发布时间: 20210714
...行走区域模型隐藏 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
...url2 = "xxxxx.png"; var type1 = Laya.Loader.IMAGE; var type2 = Laya.Loader.TEXTURE2D; Laya.loader.load([url1, url2]).then((res:Array<any>)=> { //加载多个,不带类型 }); Laya.loader.load([url1, url2], type).then((res:Array<any>)=> { //加载多个,统一设置类型 }); La...
来源: Laya3.0_文档 发布时间: 20251010
...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
...ber) 创建一个 HeightMap 实例。 HeightMap createFromImage(texture:Texture2D, minHeight:Number, maxHeight:Number):HeightMap[static] 从图片生成高度图。 HeightMap creatFromMesh(mesh:Mesh, width:int, height:int, outCellSize:Vector2):HeightMap[static] 从网格精灵生成高度图...
来源: laya_api 发布时间: 20170929
...ber) 创建一个 HeightMap 实例。 HeightMap createFromImage(texture:Texture2D, minHeight:Number, maxHeight:Number):HeightMap[static] 从图片生成高度图。 HeightMap creatFromMesh(mesh:Mesh, width:int, height:int, outCellSize:Vector2):HeightMap[static] 从网格精灵生成高度图...
来源: Laya2.0_api 发布时间: 20190513
...] loader http://localhost:18090/resources/chest_bg.png (4) [6, Texture, 7, Texture2D] loader http://localhost:18090/atlas/comp/img_bg.png (4) [6, Texture, 7, Texture2D] close --------------------------------gc 6000----------------------------------- loader http://localhost:18090/resources/chest_bg.p...
来源: Laya_社区 发布时间: 20240109
...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
...3D纹理的使用 3D的png或者jpg格式纹理加载,是使用的`Laya.Texture2D.load()`来加载纹理资源,如果要使用纹理压缩格式,则需要使用`Laya.loader.load()`来加载纹理资源。 示例代码如下所示: ```typescript //检测安卓平台 if (Laya.Browser.onAndroid...
来源: Laya2.0_文档 发布时间: 20210714
...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