tengbao / vanta

Animated 3D backgrounds for your website
http://vantajs.com/
MIT License
5.54k stars 1.02k forks source link

devicePixelRatio #156

Open pawelkaczmarek opened 1 year ago

pawelkaczmarek commented 1 year ago

Added option to set devicePixelRatio instead of use window value. When set to fixed value It helps to predict animation scaling when moving from display with devicePixelRatio 1 to 2 and more (retina)