2016-08-18 1 views
1

Sur mon macbook pro avec Chrome, l'antialias fonctionne bien.Le webglrenderer antialias ne fonctionne pas sur certains appareils?

pic on macbook pro with chrome Cependant sur mes iphone6 ​​avec Chrome ou Safari, ça ne marche plus avec le même code. pic on iphone with Safari

+0

double possible de [anticrénelage ne fonctionne pas dans Three.js] (http://stackoverflow.com/questions/17224795/antialiasing-not-working-in-three- js) – Wilt

+0

Un testeur peut être trouvé ici: http://benchung.com/antialiasing-three-js/ – Wilt

Répondre

0

Avez-vous réglé le pixelratio?

renderer.setPixelRatio(window.devicePixelRatio); 
renderer.setSize(window.innerWidth, window.innerHeight); 

Edit:iOS does not support antialiasing at the moment

+0

Cela a fonctionné, je l'ai testé dans macbook pro window.devicePixelRatio est 2 et dans iphone6s window.devicePixelRatio est 3. Merci! – antonyzhang