2.0 相机实时图的镜面问题

  • Creator 版本:2.0

  • 目标平台: < 模拟器 -->

  • 详细报错信息,包含调用堆栈:

  • 重现方式:

  • 之前哪个版本是正常的 :无

  • 手机型号 :无

  • 手机浏览器 :无

  • 编辑器操作系统 :windows

  • 编辑器之前是否有其它报错 :无

  • 出现概率:100%

  • 额外线索:

我通过RenderTexture获得相机的实时图,但是得到的是镜像的图,请问是什么原因,如何修改代码如下

start() {

    let texture = new cc.RenderTexture();
    texture.initWithSize(cc.visibleRect.width, cc.visibleRect.height);

    let spriteFrame = new cc.SpriteFrame();
    spriteFrame.setTexture(texture)
    this.sprite.spriteFrame = spriteFrame;
    this.camera.targetTexture = texture;
},

this.sprite.node.scaleY = -1;

1赞