• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 5 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0019 秒)

1. 材质-PBRStandard材质 [ 100%]

...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

2. 高级应用-渲染纹理 [ 77%]

...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

3. 自定义shader-边缘光照shader [ 68%]

...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

4. 高级应用-闪光 [ 63%]

...tterTemplet = glitter.templet; var glitterMaterial = glitter.glitterRender.sharedMaterial; glitterMaterial.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/layabox.png"); glitterMaterial.albedo = new Laya.Vector4(1.3, 1.3, 1.3, 1); glitterTemplet.lifeTime = 1.3; glitterTemplet.minSegmentDi...

来源: Laya_示例 发布时间: 20241119

5. 自定义shader-地形shader [ 61%]

....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