Skip to content

Commit

Permalink
Whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
turol committed Mar 4, 2016
1 parent deaa6b6 commit 1fb6d44
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cube.frag
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ void main(void)
uint idx = atomicCounterIncrement(counter) + 1;

if (idx < bufSize) {
ivec2 coord = ivec2(gl_FragCoord.xy);
uint prev = imageAtomicExchange(counterImage, coord, idx);
uvec3 colorTemp = uvec3(colorFrag * 255.0);
uint alpha = uint(0.5 * 255);
uint color = (alpha << 24) | (colorTemp.r << 16) | (colorTemp.g << 8) | colorTemp.b;
data[idx].color = color;
data[idx].depth = gl_FragCoord.z;
data[idx].prev = prev;
ivec2 coord = ivec2(gl_FragCoord.xy);
uint prev = imageAtomicExchange(counterImage, coord, idx);
uvec3 colorTemp = uvec3(colorFrag * 255.0);
uint alpha = uint(0.5 * 255);
uint color = (alpha << 24) | (colorTemp.r << 16) | (colorTemp.g << 8) | colorTemp.b;
data[idx].color = color;
data[idx].depth = gl_FragCoord.z;
data[idx].prev = prev;
}
}

0 comments on commit 1fb6d44

Please sign in to comment.