Closed rjyo closed 2 years ago
I found out that the working demos are using 0.4.0. It's only broken in the latest 0.4.1 version with the shader.
Indeed, it also works in mobile using version 0.4.0 using Angular. https://codesandbox.io/s/broken-darkness-1e97o
It was possibly introduced in https://github.com/shuding/cobe/commit/d8b449df43e89c5ecdcaa2f0fa3e42eed3df2dc8, which needs further investigation.
https://codesandbox.io/s/xvuej?file=/src/App.js
a hacky solution but at least works on my android device.
need to find an elegant and compatible way (among webgl shader implementations) to preserve lowest bits / get reliable warping behavior on overflow for multiplication. int
is THE pitfall.
any update on this ? @shuding
Apologize for the delay, I just released v0.4.2 which includes @farteryhr's fix. But unfortunately I don't have an Android device to verify, hope one of you can give it a test :)
I tested it and it's working 🎉🚀 @shuding Platform: Chrome 99 - Android 12
Thanks!
Thanks for the great lib!
The Demo does not work. It looks like the texture is not wrapped around the globe.
The following two work
I tried to put it in a minimum next.js app, the result is the same as the demo on cobe.vercel.app.
https://github.com/rjyo/cobe-test
https://cobe-test.vercel.app/