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

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

1. 照相机-多照相机 [ 100%]

...ene.addChild(new Laya.Camera( 0, 0.1, 100)); camera1.clearColor = new Laya.Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate(new Laya.Vector3(0, 0, 1.5)); camera1.normalizedViewport = new Laya.Viewport(0, 0, 0.5, 1.0); var camera2 = scene.addChild(new Laya.Camera( 0, 0.1, 100)); camera2.clear...

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

2. 射线检测-放置物体 [ 89%]

...ad("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.mesh = plane.meshFilter.sharedMesh; Laya.timer.frameLoop(1, this, checkHit); var ray = ne...

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

3. 高级应用-闪光 [ 87%]

...oad("../../res/threeDimen/layabox.png"); glitterMaterial.albedo = new Laya.Vector4(1.3, 1.3, 1.3, 1); glitterTemplet.lifeTime = 1.3; glitterTemplet.minSegmentDistance = 0.1; glitterTemplet.minInterpDistance = 0.6; glitterTemplet.maxSlerpCount = 128; glitterTemplet.maxSegments = 600; var pos1 = new L...

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

4. 材质-PBRStandard材质 [ 81%]

...Textures/Barrel_Occlusion.png'); //反射颜色 mat.albedoColor = new Laya.Vector4(1, 1, 1, 1); //光滑度缩放系数 mat.smoothnessTextureScale = 1.0; //遮挡贴图强度 mat.occlusionTextureStrength = 1.0; //法线贴图缩放洗漱 mat.normalScale = 1; //光滑度数据源:从金属度贴图/...

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

5. 射线检测-射线检测 [ 77%]

...sphereMesh)); var mat = new Laya.StandardMaterial(); mat.albedo = new Laya.Vector4(1, 1, 1, 0.5); mat.renderMode = 5; sphereSprite3d.meshRender.material = mat; Laya.timer.frameLoop(1, this, checkHit); } var ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Lay...

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

6. 射线检测-点击行走 [ 71%]

...ad("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.mesh = plane.meshFilter.sharedMesh; var box = scene.addChild(new Laya.MeshSprite3D(new La...

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

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

...Color(new Laya.Vector3(1, 1, 1)); customMaterial.setSpecularColor(new Laya.Vector4(1, 1, 1, 8)); customMaterial.setLightMapScaleOffset(new Laya.Vector4(0.8056641, 0.8056641, 0.001573598, -6.878261E-11)); meshSprite3D.meshRender.sharedMaterial = customMaterial; } for (var i = 0, n = spirit3D._childs....

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

8. 射线检测-选取物体 [ 58%]

...ad("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var boxCollider = plane.addComponent(Laya.BoxCollider); boxCollider.setFromBoundBox(plane.meshFilter.sharedMesh.boundingBox); plane.name = "平面"; //正方体...

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

9. Sprite3D-Sprite3D加载 [ 55%]

... laya.d3.math.Quaternion; import 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.r...

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

10. 3D场景-地形场景 [ 53%]

...ort laya.d3.math.Vector2; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.TextureCube; import laya.d3.resource.models.SkyBox; import laya.display.Stage; import laya.events.Event; import laya.utils.Stat; import common.CameraMoveScript; public class TerrainScene { pub...

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