Syntax error when compiling shader
diroru opened this issue · comments
Hello,
when i try to compile the shader, i get the following error message:
An error occurred compiling the shaders: ERROR: 0:? : '' : syntax error
My code is:
#pragma glslify: import("./src/utils/constants.glsl")
If i output the compiled shader, the constant is there, just as it is supposed to be:
#pragma glslify: import("./src/utils/constants.glsl")
const float PI_2 = 3.14159265359;
I am not sure if the macro line should be still there, too. Any ideas what i am doing wrong? My platform is OS X, using npm.
And of course, thanks for the awesome module!
Cheers!
Ok, found the source of the problem. A novice error. I didn't update my package.json
to reflect the usage of glslify-import
. My suggestion is to highlight the term transform stream
in the readme and also include instructions on how to modify the npm package file. E.g. "glslify": { "transform": [ "glslify-import" ] }
Cheers and thanks.