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

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

1. 材质-BlinnPhong-反射贴图 [ 100%]

...; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 1.3, 1.8)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearFlag = Laya.BaseCamera.CLEARFL...

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

2. 材质-BlinnPhong-漫反射贴图 [ 99%]

...; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 0.5, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearFlag = Laya.BaseCamera.CLEARFL...

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

3. 材质-BlinnPhong材质加载 [ 98%]

...; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.9, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya...

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

4. 材质-BlinnPhong-高光贴图 [ 98%]

... Laya.Stat.show(); this.scene = Laya.stage.addChild(new Laya.Scene()); var camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 1000))); camera.transform.translate(new Laya.Vector3(0, 0.7, 1.3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript...

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

5. 材质-BlinnPhong-法线贴图 [ 97%]

... Laya.Stat.show(); this.scene = Laya.stage.addChild(new Laya.Scene()); var camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 0.6, 1.1)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); var directionLight = this.scene.addCh...

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

6. Sprite3D-Sprite3D变换 [ 95%]

....Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.loader.create("../../res/threeDimen/skinM...

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

7. 自定义shader-简单shader [ 95%]

...NONE; initShader(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1.5)); camera.addComponent(CameraMoveScript); var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load(".....

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

8. Mesh网格-网格加载 [ 94%]

....Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya...

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

9. 射线检测-选取物体 [ 92%]

...ar scene = Laya.stage.addChild(new Laya.Scene()); //初始化照相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var direct...

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

10. 正交摄像机裁剪问题 [ 92%]

...400头像就会出现,而sp1离摄像机比sp更远缺不影响。 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 550))); camera.transform.translate(new Laya.Vector3(250, 1, 0)); var rotation = new Laya.Quaternion; Laya.Quaternion.lookAt(camera.position, new Laya.Vector3(0, 0, 0), camera.up,...

来源: Laya_社区 发布时间: 20170504