[]如何使用rendertexture获取相机渲染的动态图片?

具体的需求是camera获取到的rendertexture属性,然后想赋值给一个图片,可以动态的反应相机渲染到的图片的动态改变。最好能给出教程或者代码实现,因为Laya的资料实在是太少了...
已邀请:

Monica - 知识达人

赞同来自:

可以参考下这个Demo:https://layaair.ldc.layabox.co ... eDemo

tongbowen

赞同来自:

renderTargetCamera.renderTarget这个获取到了渲染目标能给到一个2d的sprite对象吗。我这样写他说
ape.texture = renderTargetCamera.renderTarget;
renderture不能赋给texture
 

crocs

赞同来自:

拿到renderTarget的纹理,用graphics绘制出来就可以了

要回复问题请先

商务合作
商务合作