Lighting, testing voxel generation

This commit is contained in:
2016-08-06 00:50:48 -07:00
parent 14987e3ba7
commit c431d7452a
6 changed files with 177 additions and 62 deletions

View File

@@ -2,7 +2,72 @@
#include "Map.h"
#include <iostream>
#include <SFML/System/Vector3.hpp>
#include <SFML/System/Vector2.hpp>
#include "util.hpp"
sf::Vector3i Map::getDimensions() {
return dimensions;
}
}
void Map::moveLight(sf::Vector2f in) {
sf::Vector3f light_spherical = CartToSphere(global_light);
light_spherical.y += in.y;
light_spherical.x += in.x;
global_light = SphereToCart(light_spherical);
return;
}
//void Map::GenerateFloor(){
//}