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

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

1. 灯光-聚光 [ 100%]

...new Laya.Vector3(1, 1, 0); spotLight.transform.position = new 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("../.....

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

2. 照相机-多照相机 [ 95%]

...hild(new Laya.Camera( 0, 0.1, 100)); camera2.clearColor = new Laya.Vector4(0.0, 0.0, 1.0, 1.0); camera2.transform.translate(new Laya.Vector3(0, 0, 1.5)); camera2.normalizedViewport = new Laya.Viewport(0.5, 0.0, 0.5, 0.5); camera2.addComponent(CameraMoveScript); camera2.clearFlag = Laya.BaseCamera.CL...

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

3. 灯光-点光 [ 94%]

...08, 0.7352941); pointLight.transform.position = new Laya.Vector3(0.4, 0.4, 0.0); pointLight.attenuation = new Laya.Vector3(0.0, 0.0, 3.0); pointLight.range = 3.0; var grid = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/grid/plane.lh")); var layaMonkey = scene.addChild(Laya.Spr...

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

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

...men/texture/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() { v...

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

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

...lse camera._shaderValues.setValue(Laya.BaseCamera.HDREXPOSURE, Math.pow(2, 0.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 = skyDom...

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