{"repo":"gre/gl-react","free":true,"listed":false,"github":"https://github.com/gre/gl-react","clone":"git clone https://github.com/gre/gl-react.git","description":"gl-react – React library to write and compose WebGL shaders","language":"TypeScript","stars":3007,"topics":["react","webgl","universal","react-native","glsl"],"license":"MIT","category":"mobile-apps","readme_excerpt":"gl-react (v6) gl-react is a React library to write and compose WebGL shaders. Implement complex effects by composing React components. This universal library must be coupled with one of the concrete implementations: - gl-react-dom for React DOM (backed by WebGL). - gl-react-native for React Native (iOS/Android OpenGL, backed by Expo implementation over unimodules). - gl-react-expo for React Native (iOS/Android OpenGL, backed by Expo implementation). - gl-react-headless for Node.js (backed by headless-gl) Links - Cookbook examples ( pnpm cookbook to run locally) - Expo Cookbook - JSFiddle hello gl example - References - GLSL spec - 'the books of shaders' - shader-school workshop They use gl-react 🙂 - onthisspot.ca - ProjectSeptember - WallGen - noisesculptor.com - ... your project ? Gist import the correct implementation, and this code... ...renders: Usage with Vite gl-react uses typedarray-pool which references Node.js's global . Add this to your vite.config.js : Features - React, VDOM and immutable paradigm : OpenGL is a low level imperative and mutable API. This library takes the best of it and exposes it in an immutable, descriptive way with React. - React lifecycle allows partial GL re-rendering. Only a React Component update will trigger a redraw. Each Node holds a framebuffer state that get redrawn when component updates and schedule a Surface reflow. - Developer experience - React DevTools works like on DOM and allows you to inspect and debug your stack of effects. - ","default_branch":null,"files":null,"tree":[],"storefront":"/r/gre","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gre/gl-react/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}