Permalink
Browse files

Fixed ATI bug with Bill's 4D rank ordering

  • Loading branch information...
1 parent 7591d77 commit 2acfd125c077c00e6b36138a2e973f3602117993 @stegu stegu committed Mar 25, 2011
Showing with 3 additions and 5 deletions.
  1. +1 −1 benchmark/Makefile
  2. +1 −1 benchmark/common/Makefile
  3. +1 −3 src/noise4D.glsl
View
2 benchmark/Makefile
@@ -21,7 +21,7 @@ MacOSX:
Win32:
cd common && $(WINMAKE)
- cd $@ && $(WINMAKE) && $(WINMAKE)
+ cd $@ && $(WINMAKE) && $(WINMAKE) run
clean-Win32:
cd common && $(WINMAKE) clean
View
2 benchmark/common/Makefile
@@ -1,4 +1,4 @@
-OPTIONS=-DNORMALISE_GRADIENTS
+OPTIONS=-DNORMALISE_GRADIENTS -DCOLLAPSE_SORTNET
SRCDIR=../../src
COMMON=commonShader.frag $(SRCDIR)/noiseStdLib.glsl
SHADERS=GLSL-ashimanoise2D.frag GLSL-ashimanoise3D.frag \
View
4 src/noise4D.glsl
@@ -31,10 +31,8 @@ float simplexNoise(vec4 v)
// Other corners
-#if (0)
+#ifdef COLLAPSE_SORTNET
// Rank sorting by Bill Licea-Kane, AMD (formerly ATI).
- // BUG: This works fine om Nvidia hardware, but ironically,
- // on ATI-AMD hardware the sorting is messed up. Why?
vec4 i0;
vec3 isX = step( x0.yzw, x0.xxx );

0 comments on commit 2acfd12

Please sign in to comment.