大约有 6 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0020 秒)
...var barrel3 = scene.getChildByName("Wooden_Barrel (3)"); barrel.meshRender.sharedMaterial = mat; barrel1.meshRender.sharedMaterial = mat; barrel2.meshRender.sharedMaterial = mat; barrel3.meshRender.sharedMaterial = mat; });class PBRStandardMaterialDemo { constructor() { Laya3D.init(0, 0, true); Laya...
来源: Laya_示例 发布时间: 20241119
...hSprite3D(new SphereMesh(0.1, 32, 32))) as MeshSprite3D; sphere.meshRender.sharedMaterial = mtl; sphere.transform.localPosition = new Vector3((x-rnum/2)*(w/rnum), (y-mnum/2)*(h/mnum), -2); } } for ( x = 0; x < rnum; x++) { mtl = new PBRMaterial(); mtl.diffuseTexture = Texture2D.load('../../../../res...
来源: Laya_示例 发布时间: 20241119
...3D) { var meshSprite = spirit3D; for (var i = 0; i < meshSprite.meshRender.sharedMaterials.length; i++) { var mat = meshSprite.meshRender.sharedMaterials[i]; mat.disableLight(); } } for (var i = 0; i < spirit3D._childs.length; i++) setMaterials(spirit3D._childs[i]); }class RenderTextureDemo { privat...
来源: Laya_示例 发布时间: 20241119
...7071067); var customMaterial = new CustomMaterial(); layaMonkey.meshRender.sharedMaterial = customMaterial; var rotation = new Laya.Vector3(0, 0.01, 0); Laya.timer.frameLoop(1, this, function () { layaMonkey.transform.rotate(rotation, false); }); function initShader() { var attributeMap = { 'a_Posit...
来源: Laya_示例 发布时间: 20241119
...s[3] = customMaterial4; dude.getChildAt(0).getChildAt(0).skinnedMeshRender.sharedMaterials = baseMaterials; dude.transform.position = new Laya.Vector3(0, 0.5, 0); }); var earth = scene.addChild(new Laya.MeshSprite3D(new Laya.SphereMesh(0.5, 128, 128))); var customMaterial = new CustomMaterial(); cus...
来源: Laya_示例 发布时间: 20241119
....8056641, 0.8056641, 0.001573598, -6.878261E-11)); meshSprite3D.meshRender.sharedMaterial = customMaterial; } for (var i = 0, n = spirit3D._childs.length; i < n; i++) setCustomMaterial(spirit3D._childs[i]); } function initShader() { var attributeMap = { 'a_Position': Laya.VertexElementUsage.POSITION...
来源: Laya_示例 发布时间: 20241119