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

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

41. 高级应用-实时阴影 [ 80%]

...cene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.7, 1.2)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector...

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

42. 如何动态获取image的宽高? [ 79%]

...jd); tf.translate(thisp.x,thisp.y); var otf:Matrix=new Matrix();//photoimg.transform?photoimg.transform:new Matrix(); //trace("jjjj1",photoimg.x,photoimg.y,photoimg.width,photoimg.height,photoimg.rotation); photoimg.transform=otf.concat(tf); image图片 通过矩阵旋转, bug1 如果设置缩放 ...

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

43. laya.d3.renderobjs.nativeobj.NativeTransform3D_API3.0 [ 79%]

...d Externals Only exported Menu Globals "laya/d3/RenderObjs/NativeOBJ/NativeTransform3D" NativeTransform3D Class NativeTransform3D Transform3D 类用于实现3D变换。 Hierarchy Transform3D NativeTransform3D Index Constructors constructor Properties _nativeObj MemoryBlock_size tmpVec3 Accessors loc...

来源: Laya3.0_api 发布时间: 20231115

44. 材质-BlinnPhong材质加载 [ 79%]

...cene()); 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.DirectionLight()); directionLight.color = new Laya.Vector3(0....

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

45. 关于平行光渲染投影问题,求解惑 [ 78%]

....Camera(0, 0.1, 1000))) as Laya.Camera; camera.orthographic = true; camera.transform.translate(new Laya.Vector3(0, 4, 8),false); camera.transform.lookAt(new Laya.Vector3(0,0,0),new Laya.Vector3(0,1,0)); //创建方向光 var light:Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as La...

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

46. laya.d3.core.Transform3D_API3.0 [ 78%]

...Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/Transform3D" Transform3D Class Transform3D Transform3D 类用于实现3D变换。 Hierarchy EventDispatcher Transform3D NativeTransform3D Index Properties tmpVec3 Accessors localMatrix localPosition localPositionX localPositi...

来源: Laya3.0_api 发布时间: 20231115

47. 3D场景-场景加载 [ 78%]

...a.ls")); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 0)); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; camera.addComponent(CameraMoveScript); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/th...

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

48. 3D阴影无法渲染出来 [ 78%]

...机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 1000))); camera.transform.translate(new Laya.Vector3(0, 5, 0)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); dire...

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

49. pivot 设置后 影响 元素大小??????????????? [ 78%]

...0,_core.height); tf.translate(_core.p1.x,_core.p1.y-_core.height); page[1].transform=tf; 我全用transform了, 达到了想要的效果 cuixueying • 2016-12-14 14:14 好的,有问题及时沟通!

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

50. 动画-新版骨骼动画 [ 77%]

...ene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 1.5, 4)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(...

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