Render to texture not working in Preview mode but working in Editor

I got the render to texture working. I had assigned the render target texture directly to the widget which was why it was not working correctly.

Now I have set it up correctly I think but I get pixelated image. This is what I see

This is how I have the blueprint scene component setup

My material is setup the following way :-

Is there any mistake here. It is extremely pixelated when I make a build and run it.