大约有 450 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0048 秒)
Laya_社区(254) Laya3.0_api(91) Laya2.0_文档(60) Laya_示例(22) Laya2.0_api(10) laya_api(7) Laya3.0_文档(6)
...3(-40, 0, 0), true, false); camera.addComponent(CameraMoveScript); Laya.Texture2D.load("res/threeDimen/layabox.png", Laya.Handler.create(this, function (tex) { var radius = new Laya.Vector3(0, 0, 1); var radMatrix = new Laya.Matrix4x4(); var circleCount = 50; var boxMesh = Laya.PrimitiveMesh.c...
来源: Laya_社区 发布时间: 20191112
...var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); material.albedo = new Laya.Vector4(1,0,1,1); box.meshRender.material = material; box.meshRender.receiveShadow = true; box.meshRender.castShadow = true; poolBox.push(box); } } }, creatPerson:...
来源: Laya_社区 发布时间: 20180117
...otate(new Laya.Vector3(-90, 0, 0), false, false); })); //加载纹理 Laya.Texture2D.load("res/threeDimen/pbr/jinshu.jpg", Laya.Handler.create(null, function(tex) { //实例PBR材质 var pbrMat = new Laya.PBRStandardMaterial(); //开启该材质的反射 pbrMat.enableReflection = true; //设置材...
来源: Laya2.0_文档 发布时间: 20210715
...量高点,反射效果更明显 pbrMat.metallic = 1; //加载纹理 Laya.Texture2D.load("res/threeDimen/pbr/jinshu.jpg", Handler.create(null, function(tex){ //pbrMat.albedoTexture = tex; teapot.meshRenderer.material = pbrMat; })); ``` ![](img/5.png)(图5)
来源: Laya2.0_文档 发布时间: 20210715
...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; //设置文本显示框位置 this.text.x = Laya.stage.wi...
来源: Laya_社区 发布时间: 20200917
...纹理 pbrTexture = Loader.getRes("res/threeDimen/texture/earth.png") as Texture2D; //为PBRStandard材质设置漫反射贴图 pbrStandardMaterial.albedoTexture = pbrTexture; //修改导出球的材质 sphere.meshRenderer.material = pbrStandardMaterial; ``` ![](img/5.png)(图5) ### 3.是否能接...
来源: Laya2.0_文档 发布时间: 20210715
...laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BaseMesh; import laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.resource.Texture; import laya.util...
来源: Laya_示例 发布时间: 20241118
...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
...rotected All Inherited Externals Only exported Menu Globals "laya/resource/Texture2DArray" Texture2DArray Class Texture2DArray 2D 纹理 数组 Hierarchy BaseTexture Texture2DArray Index Constructors constructor Properties _id depth destroyedImmediately lock name url uuid DEBUG Accessors anisoLevel ...
来源: Laya3.0_api 发布时间: 20231115
...laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BaseMesh; import laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.resource.Texture; import laya.util...
来源: Laya_示例 发布时间: 20241118