Convert RenderTexture -> Texture2D but Light is not applied on the image

Hi, I used this code to convert RenderTexture to Texture2D but the image is so dark, I assume that lightning is not applied, how do I make the Texture2D image to be brighter with lights? the Texture2D is used for Rawimage UI.

    public static Texture2D toTexture2D(RenderTexture rTex)
    {
        Texture2D tex = new Texture2D(512, 512, TextureFormat.RGB24, false);
        RenderTexture.active = rTex;
        tex.ReadPixels(new Rect(0, 0, rTex.width, rTex.height), 0, 0);
        tex.Apply();
        return tex;
    }

image

image
What I wanted. (but this one is not converted)