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

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

1. 灯光-方向光 [ 100%]

...mera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); directionLight.direction = new Laya.Vector3(0, -1.0, -1.0); var ...

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

2. 灯光-点光 [ 99%]

...mera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //点光源 var pointLight = scene.addChild(new Laya.PointLight()); pointLight.color = new Laya.Vector3(0.1189446, 0.5907708, 0.7352941); pointLight.transform.position = new Laya.Vector3(0.4, 0.4,...

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

3. 照相机-3D空间转2D空间 [ 98%]

...entScaleY); } } new D3SpaceToD2Space;package cameraModule { import laya.d3.component.animation.SkinAnimations; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.Sprite3D; import laya.d3.core.light.DirectionLight; import laya.d3.core.scene.Scene; import laya.d3.math.Ma...

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

4. 灯光-聚光 [ 96%]

...mera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //聚光灯 var spotLight = scene.addChild(new Laya.SpotLight()); spotLight.color = new Laya.Vector3(1, 1, 0); spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); spotLight.direction =...

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

5. 自定义shader-shader预编译 [ 95%]

...le;package shaderModule { import laya.ani.AnimationTemplet; import laya.d3.component.animation.SkinAnimations; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.light.DirectionLight; import laya.d3.core.scene.Scene; import laya.d3.math.Vector3; import laya.d3.resource...

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

6. Sprite3D-Sprite3D变换 [ 94%]

...;package sprite3dModule { import laya.ani.AnimationTemplet; import laya.d3.component.animation.SkinAnimations; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.Sprite3D; import laya.d3.core.material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.ma...

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

7. 天空-天空盒 [ 93%]

...era.transform.rotate(new Laya.Vector3( -30, 0, 0), true, false); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //天空盒 var skyBox = new Laya.SkyBox(); camera.sky = skyBox; skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox1/s...

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

8. Sprite3D-Sprite3D加载 [ 93%]

...;package sprite3dModule { import laya.ani.AnimationTemplet; import laya.d3.component.animation.SkinAnimations; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.Sprite3D; import laya.d3.core.material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.ma...

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

9. 动画-新版骨骼动画 [ 91%]

...() { //获取Animator动画组件 zombieAnimator = zombie.getChildAt(0).getComponentByType(Laya.Animator); loadUI(); }); function loadUI() { var clipName = ["walk","attack","left_fall","right_fall","back_fall"]; var curStateIndex = 0; Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Han...

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

10. 高级应用-Laya3D与网页混合 [ 87%]

...;package advancedModule { import laya.ani.AnimationTemplet; import laya.d3.component.animation.SkinAnimations; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.Sprite3D; import laya.d3.core.light.DirectionLight; import laya.d3.core.material.StandardMaterial; import l...

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