actarian / vscode-glsl-canvas

Live WebGL preview of GLSL shaders
MIT License
335 stars 25 forks source link

is it possible to integrate glslify in glsl-canvas? #29

Open shengsword opened 5 years ago

actarian commented 5 years ago

@shengsword it's possible, could you please provide a possible use case?

controversial commented 3 years ago

@actarian The use case would be to preview glsl shaders that are written using glslify imports. Many people write glsl shaders using syntax like:

#pragma glslify: noise = require('glsl-noise/simplex/3d')

rather than pasting the noise function at the beginning of the file, but that means those glsl files can no longer be previewed using glslCanvas.