大约有 143 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0056 秒)
...brTexture = Laya.Loader.getRes("res/threeDimen/texture/earth.png") as Laya.Texture2D; //为PBRStandard材质设置漫反射贴图 this.pbrStandardMaterial.albedoTexture = this.pbrTexture; //修改导出球的材质 this.sphere.meshRenderer.material = this.pbrStandardMaterial; ``` ![](img/5.png)(图5...
来源: Laya2.0_文档 发布时间: 20210715
...createFromMeshAndHeightMap createFromMeshAndHeightMap(mesh: Mesh, texture: Texture2D, minHeight: number, maxHeight: number, name?: string): MeshTerrainSprite3D Defined in laya/d3/core/MeshTerrainSprite3D.ts:39 从网格创建一个TerrainMeshSprite3D实例、图片读取高度图属性。 Parameters...
来源: Laya3.0_api 发布时间: 20231102
...分享 微博 QZONE 微信 zfree 赞同来自: 新版本untiy UnityEngine.Texture2D.EncodeToPNG 去掉了见截图 我这边还是导出的时候 报错 MissingMethodException: Method not found: 'UnityEngine.Texture2D.EncodeToPNG'. 资源见unity.zip. 导出配置见截图 导出工具1.6.1,u...
来源: Laya_社区 发布时间: 20170428
...Mesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex) { material.albedoTexture = tex; })); box.meshRenderer.material = material; var monkey = res.getChildByName("LayaMonkey"); //查找节点 var bonePoint:...
来源: Laya2.0_文档 发布时间: 20210715
...Mesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex) { material.albedoTexture = tex; })); box.meshRenderer.material = material; var monkey = res.getChildByName("LayaMonkey"); //查找节点 var bonePoint:...
来源: Laya2.0_文档 发布时间: 20210714
...dardMaterial = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; var layaMonkey = scene.addChild(Laya.Sprite3D.load("res/LayaMonkey/LayaMonkey.lh")); 2018-03-12 0 0 分享 微博 QZONE 微信 banmini 赞同来自: 补...
来源: Laya_社区 发布时间: 20180312
...form变量。 3.1 Uniform常见变量类型 Uniform变量的常见类型:Texture2D,Color,Vector2,Vector3,Vector4,Bool,Float,Matrix4x4,TextureCube Texture2D用于2D纹理采样的图片类型,图片本地支持格式:JPG,PNG Color 颜色类型,为四个Float类型组成的...
来源: Laya3.0_文档 发布时间: 20241014
...e front left right up down Static getTexturePixel getTexturePixel(texture: Texture2D): ArrayBufferView Defined in laya/d3/core/Camera.ts:150 get PixelTexture Parameters texture: Texture2D Returns ArrayBufferView Static instantiate instantiate(original: Sprite3D, parent?: Node, worldPositionStays?: b...
来源: Laya3.0_api 发布时间: 20231115
...e front left right up down Static getTexturePixel getTexturePixel(texture: Texture2D): ArrayBufferView Inherited from Camera.getTexturePixel Defined in laya/d3/core/Camera.ts:150 get PixelTexture Parameters texture: Texture2D Returns ArrayBufferView Static instantiate instantiate(original: Sprite3D,...
来源: Laya3.0_api 发布时间: 20231115
...以初始化A*的地图数据 //读取地形图 this.aStarMap = Loader.getTexture2D("res/threeDimen/scene/TerrainScene/Assets/AStarMap.png"); //获得地图数据 var aStarArr = this.createGridFromAStarMap(this.aStarMap); //使用astar初始化地图数据 this.graph = new (window as any).Graph(aSta...
来源: Laya3.0_文档 发布时间: 20230303