Permalink
Browse files

Bug in 3D classic noise (mod289 vec4 -> vec3)

  • Loading branch information...
1 parent 74dd2c2 commit d90a6f4e95a92d2dd30c520ffaa9a954c52b842a stegu committed Oct 11, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/classicnoise3D.glsl
View
@@ -2,7 +2,7 @@
// GLSL textureless classic 3D noise "cnoise",
// with an RSL-style periodic variant "pnoise".
// Author: Stefan Gustavson (stefan.gustavson@liu.se)
-// Version: 2011-08-22
+// Version: 2011-10-11
//
// Many thanks to Ian McEwan of Ashima Arts for the
// ideas for permutation and gradient selection.
@@ -12,7 +12,7 @@
// https://github.com/ashima/webgl-noise
//
-vec4 mod289(vec4 x)
+vec3 mod289(vec3 x)
{
return x - floor(x * (1.0 / 289.0)) * 289.0;
}

0 comments on commit d90a6f4

Please sign in to comment.