Added rendered.getPixelRatio() instead dpr var