lots of little tweaks, the cl is still completely broken, need to revert the oct position calc
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#include "Application.h"
|
||||
|
||||
const int Application::MAP_X = 32;
|
||||
const int Application::MAP_Y = 32;
|
||||
const int Application::MAP_Z = 32;
|
||||
const int Application::MAP_X = 16;
|
||||
const int Application::MAP_Y = 16;
|
||||
const int Application::MAP_Z = 16;
|
||||
|
||||
Application::Application() {
|
||||
|
||||
@@ -50,9 +50,10 @@ bool Application::init_clcaster() {
|
||||
raycaster->assign_octree(map);
|
||||
raycaster->assign_map(map);
|
||||
|
||||
|
||||
camera = std::make_shared<Camera>(
|
||||
sf::Vector3f(30.5f, 30.5f, 10.5f), // Starting position
|
||||
sf::Vector2f(1.50f, -2.0f), // Direction
|
||||
sf::Vector3f(3.8f, 3.4f, 2.6f), // Starting position
|
||||
sf::Vector2f(1.56f, .81f), // Direction
|
||||
window.get()
|
||||
);
|
||||
raycaster->assign_camera(camera);
|
||||
@@ -66,7 +67,7 @@ bool Application::init_clcaster() {
|
||||
|
||||
// Create a light prototype, send it to the controller, and get the handle back
|
||||
LightPrototype prototype(
|
||||
sf::Vector3f(30, 30.0f, 30.0f),
|
||||
sf::Vector3f(10, 10.0f, 10.0f),
|
||||
sf::Vector3f(-1.0f, -1.0f, -1.5f),
|
||||
sf::Vector4f(0.01f, 0.01f, 0.01f, 0.2f)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user