大约有 458 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)
Laya_社区(258) Laya3.0_api(91) Laya2.0_文档(60) Laya_示例(22) Laya3.0_文档(10) Laya2.0_api(10) laya_api(7)
...cript var material = new Laya.BlinnPhongMaterial(); //漫反射贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRenderer.material = material; ``` (图4) ##...
来源: Laya2.0_文档 发布时间: 20210715
... var planeMat = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/grass.png", Laya.Handler.create(this, function (tex: Laya.Texture2D): void { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移...
来源: Laya_社区 发布时间: 20201120
...cript var material = new Laya.BlinnPhongMaterial(); //漫反射贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRenderer.material = material; ``` (图4) ##...
来源: Laya2.0_文档 发布时间: 20210714
...ring = text[static] 文本类型,加载完成后返回文本。Loader TEXTURE2D : String = TEXTURE2D[static] Texture2D资源。Loader TEXTURECUBE : String = TEXTURECUBE[static] TextureCube资源。Loader TTF : String = ttf[static] TTF字体类型,加载完成后返回null。Loader XM...
来源: Laya2.0_api 发布时间: 20190513
material材质平铺 建了一个3D的平面模型,用的是Laya.Texture2D.load加载的图片纹理, 然后给它加了一个var material = new Laya.StandardMaterial();材质 material 创建的贴图材质,这样能平铺吗? var plane = this.scene.addChild(new Laya.MeshSprite3D(new Laya.P...
来源: Laya_社区 发布时间: 20180125
...寸。 Returns HeightMap Static createFromImage createFromImage(texture: Texture2D, minHeight: number, maxHeight: number): HeightMap Defined in laya/d3/core/HeightMap.ts:95 从图片生成高度图。 Parameters texture: Texture2D minHeight: number maxHeight: number 最大高度。 Returns HeightMap...
来源: Laya3.0_api 发布时间: 20231102
...图的预加载: {url: "res/heightMap.png", clas:Texture2D, priority:1, params:[true]} 场景中初始化MeshTerrainSprite3D: //通过场景中子父级节点寻找可行走区域网格模型 var meshSprite3D:MeshSprite3...
来源: Laya_社区 发布时间: 20170505
...c getTexturewithInfo getTexturewithInfo(glTFTextureInfo: glTFTextureInfo): Texture2D Defined in laya/gltf/glTFUtils.ts:485 根据 glTFTextureInfo 获取 Texture2D Parameters glTFTextureInfo: glTFTextureInfo Returns Texture2D Static pickMeshMaterials pickMeshMaterials(glTFMesh: glTFMesh): Material[] ...
来源: Laya3.0_api 发布时间: 20231102
...= new Uint8Array(_sourceTex.width * _sourceTex.height * 4); let tex2d:Laya.Texture2D = this.aImg.source["_bitmap"]; tex2d.setPixels(ret);//填充像素数据 //该操作在vulkan中会有杂点,directX opengl没有问题 tex2d.setSubPixels(0,0,w,h,dt);// 这里有问题 注释掉 在微信小游戏v...
来源: Laya_社区 发布时间: 20230328
laya 2.6.0 加载image报错 加载IMAGE资源的时候,data为Texture2D类型,前两个判断没走,(data instanceof ArrayBuffer) 和 (!(data instanceof Texture2D))。导致tex为undefined,结果就无法继续加载了。。 LayaAir 2.6.0 的JS版本 ps: 加载的是FairyGu...
来源: Laya_社区 发布时间: 20200429