summaryrefslogtreecommitdiffstats
path: root/balls.cl
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-10-26 21:30:45 -0400
committerSam Anthony <sam@samanthony.xyz>2024-10-26 21:30:45 -0400
commit6e27c253ed7f1af0e1cb94fff016538015628bed (patch)
tree7bd3e0ca9839eb1bac86cf4b9ebedfd089148af1 /balls.cl
parent14e6bf7b3673d4f59d2fc33425d9401cb13bd060 (diff)
downloadballs-6e27c253ed7f1af0e1cb94fff016538015628bed.zip
initialize position
Diffstat (limited to 'balls.cl')
-rw-r--r--balls.cl5
1 files changed, 1 insertions, 4 deletions
diff --git a/balls.cl b/balls.cl
index 540ed8c..88666e9 100644
--- a/balls.cl
+++ b/balls.cl
@@ -1,13 +1,10 @@
-#define RADIUS 0.75f
+#define RADIUS 0.15f
__kernel void
balls(__global float2 *position, __global float2 *vertices) {
size_t id, nsegs;
float theta;
- position[0].x = 0.0f;
- position[0].y = 0.0f;
-
/* Center of circle. */
vertices[0].x = position[0].x;
vertices[0].y = position[0].y;