Closed crafted-composites closed 2 years ago
commenting out the @import statement fixs the problem while still functioning,
@crafted-composites it's probably due to @import
being a custom syntax not official glsl syntax. Which makes the glsl editor extension behave weird.
Closing as solution is to do comment out the import/include statement.
https://github.com/racz16/WebGL-GLSL-Editor/issues/16
when using WebGL-GLSL-Editor VSCode extension and "ts-shader-loader" in line import statement "@import ./file;" all variables declared above the @ statement are greyed out and receive "variable is never used"
your es6 implementation is the best of the shader loaders and would be great to see it work with the GLSL extension