Hello, I use React and Vite. How can I import Shader from file?
In my real project I catch
SyntaxError: Unexpected identifier 'highp'
In sandbox I catch
[plugin:vite:import-analysis] Failed to resolve import "vertex.glsl"
Sandbox: vite-plugin-glsl - CodeSandbox
Hello and welcome to the Babylon community! I don’t know if we’ll be of much help here, as this seems to be a problem in the plugin configuration itself. Have you tried asking on the plugin project page? UstymUkhman/vite-plugin-glsl: Import, inline (and compress) GLSL shader files (github.com)
1 Like
yes, I asked a question on the plugin page at the same time, here I wanted to make sure that I was doing everything right to import glsl files