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
we have some existing shaders in our repo that don't have the .frag extension that we would like to view in glslviewer, is there a way to launch it from the command line without cping to a tmp file with the .frag extension? When you do this you don't get hot reloading for the original file
The text was updated successfully, but these errors were encountered:
hi @danielchasehooper! For context we use .frag or .fs to distinguish fragment shaders from vertex shader (.vert or .vs). Files with .glsl extensions are a bit ambiguous, that's why usually you see them when they are part of libraries like on https://lygia.xyz.
Solution, you could create file pairs that include the .glsl counter part. For example:
we don't use the glsl extension, #include doesn't seem to work if the file doesn't have a glsl extension
It'd be useful if glslviewer had something like a --frag param so that you can launch it like so: glslviewer --frag shaderFileName and it works with any extension.
we have some existing shaders in our repo that don't have the
.frag
extension that we would like to view in glslviewer, is there a way to launch it from the command line withoutcp
ing to a tmp file with the .frag extension? When you do this you don't get hot reloading for the original fileThe text was updated successfully, but these errors were encountered: