Skip to content

Commit 89d82e6

Browse files
hxrshxzCopilot
andauthored
Update src/webgl/shaders/functions/noise3DGLSL.glsl
Co-authored-by: Copilot <[email protected]>
1 parent a0abc41 commit 89d82e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/webgl/shaders/functions/noise3DGLSL.glsl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ float noise(vec3 st) {
9898
float amplitude = 1.0;
9999
float frequency = 1.0;
100100

101+
// Maximum octaves supported (default is 4, user can set up to 8)
101102
for (int i = 0; i < 8; i++) {
102103
if (i >= uNoiseOctaves) break;
103104
result += amplitude * baseNoise(st * frequency);

0 commit comments

Comments
 (0)