大约有 217 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0035 秒)
material材质平铺 建了一个3D的平面模型,用的是Laya.Texture2D.load加载的图片纹理, 然后给它加了一个var material = new Laya.StandardMaterial();材质 material 创建的贴图材质,这样能平铺吗? var plane = this.scene.addChild(new Laya.MeshSprite3D(new Laya.P...
来源: Laya_社区 发布时间: 20180125
...ar material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex:Laya.Texture2D) { material.albedoTexture = tex; })); box.meshRenderer.material = material; ``` #####
来源: Laya2.0_文档 发布时间: 20210714
... 无法添加新回复 发起人 fengzv 相关问题 Texture如何转换成Texture2D有人搞过吗 BoneSlot 对象 showSlotData 无效 texture 替换后显示错误! Texture,和Texture2D如何互转? 微信真机下游戏MAX_TEXTURE_SIZE 微信小游戏 sharedCanvas 创建的Texture,能否再...
来源: Laya_社区 发布时间: 20181017
...tandardMaterialDemo))。 ```typescript setTexture(){ //反射贴图 Laya.Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_AlbedoTransparency.png', Laya.Handler.create(this, function (texture) { this.mat.albedoTexture = texture; })); //法线贴图 L...
来源: Laya2.0_文档 发布时间: 20210715
3d的纹理无法释放 如图,3d纹理类型是texture2d,不能执行disposebitmap方法 另外,官方给出的 var resouce = Laya.loader.getRes(resourceName); if(resouce) resouce.destroy(); 方法也无法释放内存,亲测,native上,系统内存会不断增长,直到崩溃,...
来源: Laya_社区 发布时间: 20181219
...: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
...al: SkyPanoramicMaterial = new SkyPanoramicMaterial(); Texture2D.load("res/jfb.jpg", Handler.create(null, function (tex: Texture2D) { material.panoramicTexture = tex; skymat.material = material; })); 2020-03...
来源: Laya_社区 发布时间: 20200319
...var planeMat:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex:Laya.Texture2D) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, ...
来源: Laya2.0_文档 发布时间: 20210715
...//新建材质 var planeMat:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/grass.png", Handler.create(null, function(tex:Texture2D):void { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Vector4(10, 10, 0, 0); //设...
来源: Laya2.0_文档 发布时间: 20210714
... 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