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

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

21. 鼠标交互-双指缩放(多点触控) [ 76%]

...距离与上次距离变化,确定是放大还是缩小 const factor = 0.01; sp.scaleX += (distance - lastDistance) * factor; sp.scaleY += (distance - lastDistance) * factor; lastDistance = distance; } function onMouseUp(e) { Laya.stage.off(Event.MOUSE_MOVE, this, onMouseMove); } /**计算两个...

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

22. 材质-BlinnPhong-漫反射贴图 [ 76%]

...更高效。Laya3D.init(0, 0, true); this.rotation = new Laya.Vector3(0, 0.01, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = (scene.addChild(new Laya.Camera(0, 0.1, 1...

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

23. 鼠标交互-双指缩放(多点触控) [ 75%]

...距离与上次距离变化,确定是放大还是缩小 const factor = 0.01; this.sp.scaleX += (distance - lastDistance) * factor; this.sp.scaleY += (distance - lastDistance) * factor; lastDistance = distance; } onMouseUp(e) { const Event = Laya.Event; Laya.stage.off(Event.MOUSE_MOVE, this, this.o...

来源: Laya2.0_示例 发布时间: 20241124

24. 限制模型旋转角度 [ 75%]

...tiger 赞同来自: 我现在是用 var vectx:Vector3 = new Vector3(0,modx*0.01,0);   sphere.transform.rotate(vectx,true,false);   var vecty:Vector3 = new Vector3(mody*0.01,0,0); sphere.transform.rotate(vecty,false,false); 实现转球 转x轴之前先用 var v3=sphere.transform.localRotationEul...

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

25. List滚动条问题 [ 74%]

...per.call(this); this.size(312, 462); // {id:1,name:"10金豆-测试",price:0.01,title:"10金豆-测试",desc:"测试",balance:10,gift:0,imgPath:"res\\common\\BalanceSellDlg\\xiaodou.png",hot:1,orderCount:9} // 背景 var bg_image = new Laya.Image(); bg_image.skin = "res/popupwnd/market_item_bg.png";...

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

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

...更高效。Laya3D.init(0, 0, true); this.rotation = new Laya.Vector3(0, 0.01, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = (scene.addChild(new Laya.Camera(0, 0.1, 1...

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

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

...更高效。Laya3D.init(0, 0, true); this.rotation = new Laya.Vector3(0, 0.01, 0); this.specularMapUrl = ["../../res/threeDimen/skinModel/dude/Assets/dude/headS.png", "../../res/threeDimen/skinModel/dude/Assets/dude/jacketS.png", "../../res/threeDimen/skinModel/dude/Assets/dude/pantsS.png", "../../r...

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

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

...更高效。Laya3D.init(0, 0, true); this.rotation = new Laya.Vector3(0, 0.01, 0); this.normalMapUrl = ["../../res/threeDimen/staticModel/lizardCal/rock_norm.png", "../../res/threeDimen/staticModel/lizardCal/lizard_norm.png", "../../res/threeDimen/staticModel/lizardCal/lizard_norm.png"]; Laya.stage....

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

29. 自定义shader-简单shader [ 72%]

...Render.sharedMaterial = customMaterial; var rotation = new Laya.Vector3(0, 0.01, 0); Laya.timer.frameLoop(1, this, function () { layaMonkey.transform.rotate(rotation, false); }); function initShader() { var attributeMap = { 'a_Position': Laya.VertexElementUsage.POSITION0, 'a_Normal': Laya.VertexElem...

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

30. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 70%]

...行缩放                 this.translate.setValue(0, 0, -0.01 * (distance2 - this.distance));                 this.camera.transform.translate(this.translate);                 this.distance = distance2;             }            } ...

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