Skip to content

Commit 09f307d

Browse files
Add noiseGLSL to vertexDeclarations for use in vertex shaders
1 parent 3b70b71 commit 09f307d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/webgl/ShaderGenerator.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,6 +1633,7 @@ function shadergenerator(p5, fn) {
16331633
};
16341634
fn.noise = function (...args) {
16351635
if (GLOBAL_SHADER?.isGenerating) {
1636+
GLOBAL_SHADER.output.vertexDeclarations.add(noiseGLSL);
16361637
GLOBAL_SHADER.output.fragmentDeclarations.add(noiseGLSL);
16371638
return fnNodeConstructor('noise', args, { args: ['vec2'], returnType: 'float' });
16381639
} else {

0 commit comments

Comments
 (0)