Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Temporary hack to get glow shaders sort-of working on mobile
Described in the comment here: This is a hack to deal with a mysterious shader issue that crops up on mobile but not on desktop. It seems somewhat related to this: stemkoski/stemkoski.github.com#44 except in the opposite direction on Android, Google Chrome VR-- the glowing mesh is far too dim to see. You can see a demo of this by visiting https://stemkoski.github.io/Three.js/Shader-Glow.html on desktop vs. mobile and setting c = 0.2 and p = 1.4 in both cases. This fix essentially creates the illumination from the _back_ of the sphere when on mobile, which isn't as visually appealing as on desktop, but at least it's not nothing. Note that side is front by default so this is a change we only need to apply for mobile. Haven't tested this on other devices, e.g. GearVR, OculusGo, etc. Just desktop and mobile.
- Loading branch information