大约有 238 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0031 秒)
Laya_社区(110) Laya2.0_文档(51) Laya3.0_api(41) Laya_示例(22) Laya2.0_api(5) Laya3.0_文档(4) laya_api(4) Laya2.0_示例(1)
...时候再场景runtime继承类中,构造函数里面加载图片 Laya.Texture2D.load("billiards/grass.png",会报错。 附件 : --> 2020-06-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 157*****593 赞...
来源: Laya_社区 发布时间: 20200624
...ntColor无效 material = new StandardMaterial(); material.diffuseTexture = Texture2D.load("res/earth.png"); material.ambientColor=new Vector(2,2,2); sphere.meshRender.material = material; 我照教程里设置了环境颜色 material.ambientColor=new Vector(2,2,2); 但是无效,模型并没有加...
来源: Laya_社区 发布时间: 20180531
...a.BlinnPhongMaterial; //添加漫反射贴图 Laya.Texture2D.load("res/threeDimen/Physics/rocks.jpg", Laya.Handler.create(this, function (tex) { this.mat1.albedoTexture = tex; })); //平面加载 let plane = this.scene.add...
来源: Laya_社区 发布时间: 20201127
..., 10))); //新建材质 var planeMat = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); //设置材...
来源: Laya2.0_文档 发布时间: 20210714
...a.StandardMaterial(); //漫反射贴图 fishmaterial.diffuseTexture = Laya.Texture2D.load("fish/denglongyu/FBXtoolsdaochu/denglongyu.jpg"); fish.meshRender.material = fishmaterial; fish.transform.localScale = new Laya.Vector3(0.04,0.04,0.04); fish.transform.position = new Laya.Vector3(0,0.5,0); // f...
来源: Laya_社区 发布时间: 20171206
...博 QZONE 微信 Laya_Aaron 赞同来自: material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; Laya.URL.basePath = "https://XXXX.com";//请把XXXX换成自己的真实网址; //在此之下,再使用load加载资源,都会自动加入URL网址...
来源: Laya_社区 发布时间: 20180208
...Unlit材质 var material2 = new Laya.UnlitMaterial(); //加载纹理 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置反照率贴图 material2.albedoTexture = texture; })); earth2.meshRenderer.material = material2; ``` ![](img/1.png)(图1...
来源: Laya2.0_文档 发布时间: 20210714
...Unlit材质 var material2 = new Laya.UnlitMaterial(); //加载纹理 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture){ //设置反照率贴图 material2.albedoTexture = texture; })); earth2.meshRenderer.material = material2; ``` ![](img/1.png)(图1)...
来源: Laya2.0_文档 发布时间: 20210715
...材质 var material = new Laya.EffectMaterial(); //加载地球贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置纹理 material.texture = texture; })); earth.meshRenderer.material = material; ``` ![](img/1.gif)(图1)
来源: Laya2.0_文档 发布时间: 20210714
...材质 var material = new Laya.EffectMaterial(); //加载地球贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置纹理 material.texture = texture; })); earth.meshRenderer.material = material; ``` ![](img/1.gif)(图12)
来源: Laya2.0_文档 发布时间: 20210714