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

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

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

...amera( 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.clearColor = new Laya.Vector...

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

2. 灯光-方向光 [ 95%]

...ya.Vector3(0.7, 0.6, 0.6); directionLight.direction = new Laya.Vector3(0, -1.0, -1.0); var grid = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/grid/plane.lh")); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); laya...

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

3. 灯光-聚光 [ 85%]

...Laya.Vector3(0.0, 1.2, 0.0); spotLight.direction = new Laya.Vector3(0.15, -1.0, 0.0); spotLight.attenuation = new Laya.Vector3(0.0, 0.0, 0.8); spotLight.range = 6.0; spotLight.spot = 32; var grid = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/grid/plane.lh")); var layaMonkey =...

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

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

....Vector4(1, 1, 1, 1); //光滑度缩放系数 mat.smoothnessTextureScale = 1.0; //遮挡贴图强度 mat.occlusionTextureStrength = 1.0; //法线贴图缩放洗漱 mat.normalScale = 1; //光滑度数据源:从金属度贴图/反射贴图获取。 mat.smoothnessSource = Laya.PBRStandardMaterial.Smoot...

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

5. 材质-物理基础渲染材质 [ 83%]

....0)); scene.addChild(camera); camera.transform.translate(new Vector3(0, 0, 1.0)); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyDome = new Laya.SkyDome(); camera.sky = skyDome; skyDome.texture = Laya.Texture2D.load(envpath + envinfoobj.skytex); skyDo...

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

6. 高级应用-渲染纹理 [ 79%]

...ya.Vector3(0.7, 0.6, 0.6); directionLight.direction = new Laya.Vector3(0, -1.0, -1.0); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); var layaPlane = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/LayaPlane/LayaPla...

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

7. 其他引擎的Demo-Example_04 [ 76%]

...ser = Laya.Browser; var WebGL = Laya.WebGL; var starCount = 2500; var sx = 1.0 + (Math.random() / 20); var sy = 1.0 + (Math.random() / 20); var stars = []; var w = Browser.width; var h = Browser.height; var slideX = w / 2; var slideY = h / 2; var speedInfo; (function() { Laya.init(w, h, WebGL); crea...

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

8. 高级应用-实时阴影 [ 72%]

...ya.Vector3(0.7, 0.6, 0.6); directionLight.direction = new Laya.Vector3(0, -1.0, -1.0); //灯光开启阴影 directionLight.shadow = true; //可见阴影距离 directionLight.shadowDistance = 3; //生成阴影贴图尺寸 directionLight.shadowResolution = 2048; //生成阴影贴图数量 directionLig...

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

9. 灯光-点光 [ 71%]

...mator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 75, 110); }); var _position = new Laya.Vector3(); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion); Laya.Vector3.transf...

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

10. 自定义shader-边缘光照shader [ 69%]

...e/earth.png")); customMaterial.setMarginalColor(new Laya.Vector3(0.0, 0.3, 1.0)); earth.meshRender.sharedMaterial = customMaterial; var rotation = new Laya.Vector3(0, 0.01, 0); Laya.timer.frameLoop(1, null, function () { earth.transform.rotate(rotation, true); }); function initShader() { var attribu...

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