public static void clearRenderTexture() { if (_cf != null) { _cf.clearTexture(); } }
void CameraEnd(bool isReversed, Camera cam, Camera camEnd, Camera[] allCams) { if (isReversed) { //set camEnd to top if (camEnd) { AMUtil.SetTopCamera(cam, allCams); } } if (typeEnd == 0) { AMCameraFade.reset(); } else { AMCameraFade cf = AMCameraFade.getCameraFade(); cf.keepAliveColor = true; cf.hasColorTex = true; cf.hasColorBG = false; cf.colorTex = colorEnd; cf.mode = 0; cf.value = 1.0f; } if (!still) { if (cam) { cam.targetTexture = null; } if (camEnd) { camEnd.targetTexture = null; } } if (AMCameraFade.hasInstance()) { AMCameraFade cf = AMCameraFade.getCameraFade(); cf.clearScreenTex(); cf.clearTexture(); if (cf.keepAlives > 0) { cf.keepAlives--; } } }