Shaders: fetching / parsing strategies on web based REPLs
-
vite-glsl: Using this Vite plugin to import local dependencies, or load inline shaders. Github Repo by Ustym Ukhman.
-
glslfy: Node module based, combined with babel-parse-glsl allows to inject shaders with dependencies declared on the package.json. Commonly used in three.js & react-three-fiber. Github Repo part of the Stack.gl project.
-
glslify-loader: glslify loader module for webpack. Commonly used with React-based frameworks like Next.js. Github Repo.
-
html script: via scrip tag with x-script attribute. Common among old three.js articles. Demo: Minimal three.js shader example by Kyle McDonald.