Problem with updating Reflector on window resize

Hello folks,

I added a mirror to my scene and noticed one thing - when I resize the window, the whole scene scales properly besides the Reflector texture.
The whole texture keeps the previous resolution which results in a pixelated look.

I tried to set materialNeedsUpdate to true, I tried to update the width and height texture values in uniforms, but apparently it doesn’t work.

Below the problem:

(Resize the scene manually or click FullScreen to see the problem)

Thanks for your time, any help is appreciated!rsz_screenshot_566

You have to resize the reflectors internal render target manually like so:

const renderTarget = mirror.getRenderTarget();
renderTarget.setSize( width, height );
1 Like

Thanks @Mugen87, that solves the problem!