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

大约有 148 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0047 秒)

41. Sprite3D-Sprite3D克隆 [ 75%]

...inModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMonkey_clone1 = Laya.Sprite3D.instantiate(layaMonkey, scene, fal...

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

42. 天空-天空盒 [ 75%]

...s.Stat; import common.CameraMoveScript; public class SkyBoxSample { public function SkyBoxSample() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); var scene:Scene = Laya.stage.addChild(new Scene()) as Scene; var camera:Camer...

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

43. 材质-BlinnPhong-反射贴图 [ 75%]

..., -0.7071067); teapot2.meshFilter.sharedMesh.once(Laya.Event.LOADED, this, function () { var material = teapot2.meshRender.material; //反射贴图 material.reflectTexture = textureCube; }); Laya.timer.frameLoop(1, this, function () { teapot1.transform.rotate(this.rotation, false); teapot2.transform...

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

44. 高级应用-闪光 [ 75%]

...r scaleDelta = 0; var scaleValue = 0; Laya.timer.frameLoop(1, this, loop); function loop() { scaleValue = Math.sin(scaleDelta += 0.01); pos1.elements[0] = pos2.elements[0] = scaleValue * 13; pos1.elements[1] = Math.sin(scaleValue * 20) * 2; pos2.elements[1] = Math.sin(scaleValue * 20) * 2; glitter.a...

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

45. 多光源渲染(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 74%]

...源对应的移动半径数组 public var moveRanges: Array = []; public function onUpdate(): void { var seed: Number = Laya.timer.currTimer * 0.002; for (var i: int = 0, n: Number = this.lights.length; i 加载场景,并且添加多光源 ```typescript Scene3D.load("res/threeDimen/scene/MultiLigh...

来源: Laya2.0_文档 发布时间: 20210714

46. VR场景-VR场景 [ 74%]

...ils.Stat; import common.VRCameraMoveScript; public class VRScene2 { public function VRScene2() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); var scene:Scene = Laya.stage.addChild(Scene.load("../../../../res/threeDimen/scen...

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

47. Uncaught TypeError: Cannot read property 'props' of undefined [ 74%]

...导入从unity导出的场景,出现此错误,代码如下 var Main = (function () { function Main() { //初始化引擎 Laya3D.init(0, 0,true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); //添加3D场景 Laya.Scene3D.load("Lay...

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

48. 材质-BlinnPhong-高光贴图 [ 73%]

...er.create("../../res/threeDimen/skinModel/dude/dude.lh", completeHandler); function onComplete() { var dude1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/dude/dude.lh")); dude1.transform.position = new Laya.Vector3(-0.6, 0, 0); var dude2 = Laya.Sprite3D.instantiate(dude1,...

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

49. 材质-BlinnPhong-漫反射贴图 [ 73%]

...ng"); earth2.meshRender.material = material; Laya.timer.frameLoop(1, this, function () { earth1.transform.rotate(this.rotation, false); earth2.transform.rotate(this.rotation, false); });class BlinnPhong_DiffuseMap { private rotation: Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); constructor() { Laya3...

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

50. 材质-BlinnPhong-法线贴图 [ 73%]

...Model/lizardCal/lizardCaclute.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var monster1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/lizardCal/lizardCaclute.lh")); monster1.transform.position = new Laya.Vector3(-0.6, 0, 0); monster1.transform.loc...

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