Are there any tutorials for using expo-gl? I was trying to use this tutorial, but it seems expo uses a different format, and that format isn’t really mentioned in the GLView docs
expo-gl is implemtning WebGl or WebGl2 (depending if device support it), Our implementation is not 100% complaiant with a specs, but it mostly relates to error handling (sometimes it throws exceptions instead of using gl.getError). Main difference is how you are accessing gl object instead of calling canvas.getContext("webgl2");
you need to pass onContextCreate
prop to GLView.
You can find few examples here expo/apps/native-component-list/src/screens/GL at master · expo/expo · GitHub
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.