diff options
author | Andreas Grois <andi@grois.info> | 2018-03-10 13:55:50 +0100 |
---|---|---|
committer | Andreas Grois <andi@grois.info> | 2018-03-10 13:55:50 +0100 |
commit | a0afe4bf8c011222b85c481ae209b09f75189858 (patch) | |
tree | 16c8fa87fa5b5113b2186adfc0b58f3b3549ac90 /BuddhaTest/Shaders/BuddhaCompute.glsl | |
parent | 710c12067531e6e05280d081203aeb3b945669a9 (diff) |
Reduce buffer size by a factor of 2 (image is symmetric)
Diffstat (limited to 'BuddhaTest/Shaders/BuddhaCompute.glsl')
-rw-r--r-- | BuddhaTest/Shaders/BuddhaCompute.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BuddhaTest/Shaders/BuddhaCompute.glsl b/BuddhaTest/Shaders/BuddhaCompute.glsl index d42f506..ddbaf93 100644 --- a/BuddhaTest/Shaders/BuddhaCompute.glsl +++ b/BuddhaTest/Shaders/BuddhaCompute.glsl @@ -23,7 +23,7 @@ void addToColorOfCell(uvec2 cell, uvec3 toAdd) uvec2 getCell(vec2 complex)
{
- vec2 uv = clamp(vec2((complex.x+2.5)/3.5, 0.5*(complex.y + 1.0)),vec2(0.0),vec2(1.0));
+ vec2 uv = clamp(vec2((complex.x+2.5)/3.5, (abs(complex.y))),vec2(0.0),vec2(1.0));
return uvec2(width * uv.x, height * uv.y);
}
|