You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I'm having using shader functions from lygia... It doesn't seem possible with glsify (as it's currently setup) to load shader parts with the #include method.
This vite GLSL loader looks promising and I tried to swap out your hot-shader-reload.js with the vite plugin, but I got an error when hot-reloading:
node:internal/errors:466
ErrorCaptureStackTrace(err);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined
at utimes (node:fs:2000:10)
at file:///Users/ben/Documents/personal-repos/fragment/node_modules/vite-plugin-glsl/src/watchShader.js:60:7
So it's clearly not as straightforward as a one-to-one replacement.
Do you think there's a way of getting #include to work in a shader (or any other means of loading in lygia files)?
The text was updated successfully, but these errors were encountered:
Hello! Thanks for raising that issue and trying the vite GLSL loader! It's actually on the roadmap as I'm looking into lygia as well and thought it would be great to have that. I haven't had the time yet to put some work on it, and that error doesn't tell me much. I'll have a look at it!
Hello! I'm having using shader functions from lygia... It doesn't seem possible with
glsify
(as it's currently setup) to load shader parts with the#include
method.This vite GLSL loader looks promising and I tried to swap out your
hot-shader-reload.js
with the vite plugin, but I got an error when hot-reloading:So it's clearly not as straightforward as a one-to-one replacement.
Do you think there's a way of getting
#include
to work in a shader (or any other means of loading in lygia files)?The text was updated successfully, but these errors were encountered: