大约有 6 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0022 秒)
...ltc"); //实例PBR材质 var mat = new Laya.PBRStandardMaterial(); //反射贴图 mat.albedoTexture = Laya.Texture2D.load('../../res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_AlbedoTransparency.png'); //法线贴图 mat.normalTexture = Laya.Texture2D.load('../../r...
来源: Laya_示例 发布时间: 20241118
...ctor3(0.6, 0, 0); var material = new Laya.BlinnPhongMaterial(); //漫反射贴图 material.albedoTexture = Laya.Texture2D.load("../../res/threeDimen/texture/earth.png"); earth2.meshRender.material = material; Laya.timer.frameLoop(1, this, function () { earth1.transform.rotate(this.rotation, false); ...
来源: Laya_示例 发布时间: 20241118
...+) { var mat = skinnedMeshSprite3d.skinnedMeshRender.materials[i]; //高光贴图 mat.specularTexture = Laya.Texture2D.load(this.specularMapUrl[i]); } Laya.timer.frameLoop(1, this, function () { dude1.transform.rotate(this.rotation); dude2.transform.rotate(this.rotation); }); }class BlinnPhong_Specu...
来源: Laya_示例 发布时间: 20241118
...D, this, function () { var material = teapot2.meshRender.material; //反射贴图 material.reflectTexture = textureCube; }); Laya.timer.frameLoop(1, this, function () { teapot1.transform.rotate(this.rotation, false); teapot2.transform.rotate(this.rotation, false); });class BlinnPhong_ReflectMap { pr...
来源: Laya_示例 发布时间: 20241118
...ster2._childs[i]; var material = meshSprite3D.meshRender.material; //法线贴图 material.normalTexture = Laya.Texture2D.load(this.normalMapUrl[i]); } Laya.timer.frameLoop(1, this, function () { monster1.transform.rotate(this.rotation); monster2.transform.rotate(this.rotation); }); }class BlinnPhon...
来源: Laya_示例 发布时间: 20241118
...rue; //可见阴影距离 directionLight.shadowDistance = 3; //生成阴影贴图尺寸 directionLight.shadowResolution = 2048; //生成阴影贴图数量 directionLight.shadowPSSMCount = 1; //模糊等级,越大越高,更耗性能 directionLight.shadowPCFType = 3; Laya.loader.create([ "../../res/th...
来源: Laya_示例 发布时间: 20241118