Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def voxel
- x = 0
- y = 0
- z = 0
- glColor3f(0, 1, 0);
- glPushMatrix();
- while x < 10 and y < 10
- glTranslatef(x*1,y*1,0);
- glutSolidCube(1);
- x += 1
- y += 1
- z += 1
- end
- glPopMatrix();
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement