for ( int tx = -floorSize; tx <= floorSize; tx += textureTileSize ) {
for ( int tz = -floorSize; tz <= floorSize; tz += textureTileSize ) {
int subTileWidth = textureTileSize / divisions;
for ( int tx = -floorSize; tx <= floorSize; tx += textureTileSize ) {
for ( int tz = -floorSize; tz <= floorSize; tz += textureTileSize ) {
int subTileWidth = textureTileSize / divisions;
- for ( int x = 0; x <= textureTileSize; x += subTileWidth ) {
- for ( int z = 0; z <= textureTileSize; z += subTileWidth ) {
+ for ( int x = 0; x <= divisions * 2; x++ ) {
+ for ( int z = 0; z <= divisions * 2; z++ ) {
glColor3f( 1.0, 1.0, 1.0 );
printf("Creating a subtile.\n");
glColor3f( 1.0, 1.0, 1.0 );
printf("Creating a subtile.\n");