actarian / vscode-glsl-canvas

Live WebGL preview of GLSL shaders
MIT License
328 stars 24 forks source link

#include not working in webgl 2 #77

Open Blechlawine opened 2 years ago

Blechlawine commented 2 years ago

the '#include' macro causes a Load error: "Error: Network request failed for url ..." code:

#version 300 es

#include "/_ray.glsl"

precision mediump float;

uniform vec2 u_resolution;
uniform vec2 u_mouse;
uniform float u_time;

out vec4 fragColor;
void main() {
    fragColor = vec4(1., 0., 0.5, 1.);
}

The error message: image

I tried a relative path as well and it said syntax error? image

pixelprato commented 2 months ago

Have the same image