this is the only code I have for rectlights, and the import statement, when I launch the site on chrome it works, but not on safari. I dont know how to open the inspector in safari so I cant really check the console logs
RectAreaLightUniformsLib.init();
var rectLight = new THREE.RectAreaLight(0xffffff, 10, 10, 1);
rectLight.position.set(0, 7, 3.5);
rectLight.lookAt(0, 0, 0);
rectLight.color = new THREE.Color(0xffffff);
var rectLight2 = new THREE.RectAreaLight(0xffffff, 10, 10, 1);
rectLight2.position.set(0, 2, 10);
rectLight2.lookAt(0, 0, 0);
rectLight2.color = new THREE.Color(0xffffff);
scene.add(rectLight);
scene.add(rectLight2);
Well, we tried on 2 iphones, both have the newest iOS , or relatively so. Is there a way to make a page with rectlights so it works android/iSO reliably?
Area lights relying on (half) floating point textures which might be broken on your device/browser. If those are not working correctly, you have to use other lights.