-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
Most examples in the demos directory run smoothly without any issue. However, the glslify.glsl example:
#pragma glslify: snoise = require('glsl-noise/simplex/2d')
float noise(in vec2 pt) {
return snoise(pt) * 0.5 + 0.5;
}
void main () {
float r = noise(gl_FragCoord.xy * 0.01);
float g = noise(gl_FragCoord.xy * 0.01 + 100.0);
float b = noise(gl_FragCoord.xy * 0.01 + 300.0);
gl_FragColor = vec4(r, g, b, 1);
}
The noise function in the above code gives error:
'snoise' : no matching overloaded function found
I checked the glslify package was installed in the node_modules folder.
Metadata
Metadata
Assignees
Labels
No labels