大约有 463 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0041 秒)
Laya_社区(259) Laya3.0_api(94) Laya2.0_文档(62) Laya_示例(23) Laya2.0_api(10) laya_api(7) Laya3.0_文档(7) Laya2.0_示例(1)
...text': No function was found that matched the signature provided. at Texture2D.__proto._createWebGlTexture (laya.d3.js:33519) at Texture2D.__proto.recreateResource (laya.d3.js:33562) at Texture2D.__proto.activeResource (laya.core.js:13234) at Texture2D.<anonymous> (laya...
来源: Laya_社区 发布时间: 20171120
...:PBRStandardMaterial = new Laya.PBRStandardMaterial(); //反射贴图 Laya.Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_AlbedoTransparency.png', Laya.Handler.create(this, function(texture) { mat.albedoTexture = texture; })); //法线贴图 Laya.Te...
来源: Laya2.0_文档 发布时间: 20210714
...thods MethodDefined By TextureGenerator()TextureGenerator _generateTexture2D(texture:Texture2D, textureWidth:int, textureHeight:int, func:Function):void[static] TextureGenerator haloTexture(x:int, y:int, maxX:int, maxY:int, index:int, data:Uint8Array):void[static] TextureGenerator ligh...
来源: Laya2.0_api 发布时间: 20190513
...; var WebGL = Laya.WebGL; var texture1 = "../../res/apes/monkey2.png"; var texture2 = "../../res/apes/monkey3.png"; var flag = false; var ape; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; ...
来源: Laya2.0_文档 发布时间: 20210715
...同来自: 请问具体是怎样实现的? 我也遇到了这个问题 Texture2D.load("res/env/mountain1_3.png", Handler.create(null, function(tex:Texture2D):void { menu_sprite_jian.graphics.drawTexture(tex,0,0); }));这样然后无法drawtexture报...
来源: Laya_社区 发布时间: 20190508
... 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_文档 发布时间: 20230406
...Texture { private texture1: string = "../../res/apes/monkey2.png"; private texture2: string = "../../res/apes/monkey3.png"; private flag: boolean = false; private ape: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya....
来源: Laya2.0_文档 发布时间: 20210715
...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