webglrenderer antialias在某些设备上不起作用?

时间:2016-08-18 08:35:12

标签: javascript three.js antialiasing

在使用Chrome的Macbook pro上,抗锯齿效果很好。

pic on macbook pro with chrome 但是在我使用Chrome或Safari的iphone6上,它不再使用相同的代码。 pic on iphone with Safari

1 个答案:

答案 0 :(得分:0)

你设置了pixel像素吗?

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

修改: iOS does not support antialiasing at the moment

相关问题