[0]RenderTexture 无法再image上显示
this.modelCamera.clearFlag = Laya.CameraClearFlags.SolidColor;
this.modelCamera.clearColor = new Laya.Vector4(0, 0, 0, 0);
this.modelCamera.renderTarget = new Laya.RenderTexture(512, 512, Laya.RenderTextureFormat.R8G8B8A8, Laya.RenderTextureDepthFormat.DEPTHSTENCIL_24_8);
this.modelCamera.renderingOrder = -1;
this.modelCamera.farPlane = 100;
this.modelCamera.nearPlane = 0.01;
this.m_image.source = new Laya.Texture(MapMgr.ins.cameraMgr.getModelCamera().renderTarget, Laya.Texture.DEF_UV);
this.modelCamera.clearColor = new Laya.Vector4(0, 0, 0, 0);
this.modelCamera.renderTarget = new Laya.RenderTexture(512, 512, Laya.RenderTextureFormat.R8G8B8A8, Laya.RenderTextureDepthFormat.DEPTHSTENCIL_24_8);
this.modelCamera.renderingOrder = -1;
this.modelCamera.farPlane = 100;
this.modelCamera.nearPlane = 0.01;
this.m_image.source = new Laya.Texture(MapMgr.ins.cameraMgr.getModelCamera().renderTarget, Laya.Texture.DEF_UV);
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
Laya_z
赞同来自: