大约有 799 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0059 秒)
Laya_社区(595) Laya2.0_文档(68) Laya3.0_api(47) laya_api(29) Laya_示例(24) Laya2.0_api(24) Laya3.0_文档(12)
... var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex) { material.albedoTexture = tex; })); box.meshRenderer.material = material; var monkey = res.getChildByNa...
来源: Laya2.0_文档 发布时间: 20210714
...mentationAll Packages | All Classes | Index | Frames No Frames EffectMaterialProperties | Methods | Constants Packagelaya.d3.core.materialClasspublic class EffectMaterialInheritanceEffectMaterial BaseMaterial laya.resource.Resource EffectMaterial 类用于实现Mesh特效材质。 Public Pr...
来源: Laya2.0_api 发布时间: 20190513
...ite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.StandardMaterial = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; var layaMonkey = scene.addChild(Laya.Sprite3D.load("res/Laya...
来源: Laya_社区 发布时间: 20180312
...rite3D(new Laya.PlaneMesh(6, 6, 10, 10))); var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addCo...
来源: Laya_示例 发布时间: 20241119
... box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(this, function(tex:Texture2D):void { material.albedoTexture = tex; })); box.meshRenderer.material = material; var monke...
来源: Laya2.0_文档 发布时间: 20210714
...性去改 kaiqiw945 • 2018-03-27 11:29 那我只能用材质去改 var material = meshSprite.meshRender.sharedMaterial; material.albedo = new Vector4(1.0,1.0,1.0,0.0); material.renderMode = 5; Laya_Aaron • 2018-03-27 11:29 https://ldc.layabox.com/doc/?nav=zh-as-4-0-7 你如何用你不知道的...
来源: Laya_社区 发布时间: 20180327
...r练练手~ export default class CurveBlinnPhong extends Laya.BlinnPhongMaterial { public readonly MAIN_TEX: number = Laya.Shader3D.propertyNameToID("u_MainTex"); public readonly X_OFFSET: number = Laya.Shader3D.propertyNameToID("u_XOffset"); public readonly Y_OFFSET: number = Laya.Shader3D.prope...
来源: Laya_社区 发布时间: 20201009
...mat; //材质加载 this.mat1 = new Laya.BlinnPhongMaterial; //添加漫反射贴图 Laya.Texture2D.load("res/threeDimen/Physics/rocks.jpg", Laya.Handler.create(this, function (tex) { this.mat1.albedoTexture = tex; })); ...
来源: Laya_社区 发布时间: 20201127
...null, function (mesh) { for (var i = 0; i < meshSprite.meshRender.sharedMaterials.length; i++) { var material = meshSprite.meshRender.sharedMaterials[i]; material.once(Laya.Event.LOADED, null, function (mat) { mat.albedo = new Vector4(3.5,3.5,3.5,1.0); }); } }); }); 不同结构的模型导出的...
来源: Laya_社区 发布时间: 20161021
...entationAll Packages | All Classes | Index | Frames No Frames TerrainMaterialProperties | Methods | Constants Packagelaya.d3.core.materialClasspublic class TerrainMaterialInheritanceTerrainMaterial BaseMaterial laya.resource.Resource ... Public Properties Hide Inherited Public Properties Sh...
来源: Laya2.0_api 发布时间: 20190513