aboutsummaryrefslogtreecommitdiff
path: root/BuddhaTest/Shaders
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2018-03-23 23:21:43 +0100
committerAndreas Grois <andi@grois.info>2018-03-23 23:21:43 +0100
commit53a8f22f9d46caf533edf5081477ab36c57c7c89 (patch)
tree4815482a1dfb1185b466ad67aaaea984e55e5372 /BuddhaTest/Shaders
parent183f60d1305e4de6729882f18311090b33d5374b (diff)
Fix issues caused by symmetry usage (remove symmetry for now). Re-add once it's working...
Diffstat (limited to 'BuddhaTest/Shaders')
-rw-r--r--BuddhaTest/Shaders/BuddhaCompute.glsl2
-rw-r--r--BuddhaTest/Shaders/BuddhaFragment.glsl5
2 files changed, 2 insertions, 5 deletions
diff --git a/BuddhaTest/Shaders/BuddhaCompute.glsl b/BuddhaTest/Shaders/BuddhaCompute.glsl
index 8b342cc..6933c7d 100644
--- a/BuddhaTest/Shaders/BuddhaCompute.glsl
+++ b/BuddhaTest/Shaders/BuddhaCompute.glsl
@@ -271,7 +271,7 @@ vec2 getCurrentOrbitOffset(const uint orbitNumber, const uint totalWorkers, cons
seed = (seed ^ (intHash(orbitNumber+totalWorkers)));
float y = hash1(seed,seed);
vec2 random = vec2(x,y);
- return vec2(random.x * 4-2,random.y*2);
+ return vec2(random.x * 4-2,random.y*4-2);
}
void main() {
diff --git a/BuddhaTest/Shaders/BuddhaFragment.glsl b/BuddhaTest/Shaders/BuddhaFragment.glsl
index ac8114b..59990e1 100644
--- a/BuddhaTest/Shaders/BuddhaFragment.glsl
+++ b/BuddhaTest/Shaders/BuddhaFragment.glsl
@@ -23,10 +23,7 @@ uvec3 getColorAt(vec2 fragCoord)
uint xIndex = uint(max(0.0,(fragCoord.x+1.0)*0.5*width));
uint yIndex = uint(max(0.0,abs(fragCoord.y+1.0)*0.5*height));
uint firstIndex = 3*(xIndex + yIndex * width);
- uvec3 c1=uvec3(counts_SSBO[firstIndex],counts_SSBO[firstIndex+1],counts_SSBO[firstIndex+2]);
- firstIndex = 3*(xIndex +(height-1 - yIndex) * width);
- uvec3 c2=uvec3(counts_SSBO[firstIndex],counts_SSBO[firstIndex+1],counts_SSBO[firstIndex+2]);
- return c1+c2;
+ return uvec3(counts_SSBO[firstIndex],counts_SSBO[firstIndex+1],counts_SSBO[firstIndex+2]);
}
void main(){