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

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

11. [laya2.0-2.3]CollisionUtils.ts bug [ 69%]

...isionUtils.intersectsRayAndPlaneRD(ray, plane, distance)) { out = Vector3._ZERO; return false; } Vector3.scale(ray.direction, distance, CollisionUtils._tempV30); Vector3.add(ray.origin, CollisionUtils._tempV30, CollisionUtils._tempV31); out = CollisionUtils._tempV31; return true; }这个函数里面...

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

12. PBR标准材质实时阴影渲染问题 [ 68%]

... = camera.addComponent(ModelViewer); modelViewer.AroundPos = Laya.Vector3._ZERO; var directionLight = (scene_360 as Laya.Node).getChildByName('Directional light') as Laya.DirectionLight; //灯光开启阴影 directionLight.shadow = true; //可见阴影距离 directionLight.shadowDistance = 20; direc...

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

13. Laya 屏幕坐标系怎么转3D坐标系? 该如何实现呢 [ 67%]

...: 射线检测,官方有demo 2019-07-02 0 0 分享 微博 QZONE 微信 Zero 赞同来自: camera.convertScreenCoordToOrthographicCoord(this._pos, this._trans); //转换2D屏幕坐标系统到3D正交投影下的坐标系统,注:只有正交模型下有效。 2019-08-31 0 0 分享 微博 QZONE ...

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

14. sprite.drawToCanvas绘制纹理无法释放内存资源 [ 66%]

...<= 0) { trace("[error] canvasWidth and canvasHeight should greater than zero"); } - offsetX -= sprite.x; - offsetY -= sprite.y; + //offsetX -= sprite.x; + //offsetY -= sprite.y; //把参数强转成int canvasWidth |= 1; canvasHeight |= 1; offsetX |= 1; offsetY |= 1; --- a/libs/laya/src/laya/webgl...

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

15. laya.d3.core.material.RenderState [ 65%]

..._源颜色,例:RGB(Rs, Gs, Bs),Alpha(As)。RenderState  BLENDPARAM_ZERO : int = 0[static] 混合参数枚举_零,例:RGB(0,0,0),Alpha:(1)。RenderState  CULL_BACK : int = 2[static] 剔除枚举_剔除背面。RenderState  CULL_FRONT : int = 1[static] 剔除枚举_剔除正面。RenderSta...

来源: Laya2.0_api 发布时间: 20190513

16. ts加密md5码封装 [ 63%]

... porcess_message(str: string) { const length = str.length; const length_of_zero = Math.ceil(length / 64) * 64 - length - 8 - 1; str += String.fromCharCode(0b10000000); const strArray = this.padding(str.split(""), length + 1 + length_of_zero, String.fromCharCode(0)); const tail = this.split(this.padd...

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

17. 火狐浏览器上webgl异常 [ 59%]

...%20%3E%20eval:4:30925 Error: WebGL: texSubImage2D: This operation requires zeroing texture data. This is slow. 如题 这可能是什么引起的? 2017-11-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 wudi19...

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

18. laya.d3.core.material.BaseMaterial [ 56%]

..._源颜色,例:RGB(Rs, Gs, Bs),Alpha(As)。BaseMaterial  BLENDPARAM_ZERO : int = 0[static] 混合参数枚举_零,例:RGB(0,0,0),Alpha:(1)。BaseMaterial  CULL_BACK : int = 2[static] 剔除枚举_剔除背面。BaseMaterial  CULL_FRONT : int = 1[static] 剔除枚举_剔除正面。BaseMa...

来源: laya_api 发布时间: 20170929

19. sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale [ 53%]

...好像不行,无论是Laya.Tween.to(lamp.transform, {localScale:Vector3.zero}, 500); 还是Laya.Tween.to(lamp.transform.localScale, {x:1, y:1, z:1}, 500);都没有反应,是不是我调用的方式不对呢 ? 2017-06-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

20. laya.d3.core.material.GlitterMaterial [ 49%]

...举_源颜色,例:RGB(Rs, Gs, Bs),Alpha(As)。BaseMaterial BLENDPARAM_ZERO : int = 0[static] 混合参数枚举_零,例:RGB(0,0,0),Alpha:(1)。BaseMaterial CULL_BACK : int = 2[static] 剔除枚举_剔除背面。BaseMaterial CULL_FRONT : int = 1[static] 剔除枚举_剔除正面。BaseMater...

来源: laya_api 发布时间: 20170929