diff --git a/src/surface.c b/src/surface.c index 457c099..12da109 100644 --- a/src/surface.c +++ b/src/surface.c @@ -23,7 +23,7 @@ void mobius(float *d_surface, int i, int j, int grid_size) void toro(float *d_surface, int i, int j, int grid_size) { float u = (2*M_PI) * ((float)i/(grid_size) ); - float v = (2*WIDTH) * ((float)j ); + float v = (1*WIDTH) * ((float)j ); d_surface[0] = (1 + 0.5*cos(v))*cos(u); d_surface[1] = (1 + 0.5*cos(v)) * sin(u);