ray casting
parent
f6b3e12d73
commit
34e89cfd67
|
@ -1,5 +1,5 @@
|
||||||
cmake_minimum_required(VERSION 3.25)
|
cmake_minimum_required(VERSION 3.25)
|
||||||
project(graphs VERSION 0.0.24)
|
project(graphs VERSION 0.0.25)
|
||||||
|
|
||||||
option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF)
|
option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF)
|
||||||
option(ENABLE_UBSAN "Enable the ub sanitizer" OFF)
|
option(ENABLE_UBSAN "Enable the ub sanitizer" OFF)
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 2afdfbf3a9f8bdbbf085318b1933e9458c273707
|
Subproject commit a066d8f6e47d63c14387ab002d30c6a87ffb1c15
|
|
@ -698,10 +698,11 @@ void update(const blt::gfx::window_data& data)
|
||||||
camera.update_view(global_matrices);
|
camera.update_view(global_matrices);
|
||||||
global_matrices.update();
|
global_matrices.update();
|
||||||
|
|
||||||
|
//renderer_2d.drawPoint(blt::make_color(1, 0, 0), blt::vec2(0, 0), 50);
|
||||||
|
//renderer_2d.drawPoint(blt::make_color(1, 0, 0), blt::vec2(data.width, data.height), 50);
|
||||||
renderer_2d.render();
|
renderer_2d.render();
|
||||||
|
|
||||||
auto d2 = global_matrices.getScale2D();
|
BLT_TRACE_STREAM << blt::gfx::calculateRay2D(static_cast<float>(data.width), static_cast<float>(data.height), global_matrices.getScale2D(),
|
||||||
BLT_TRACE_STREAM << blt::gfx::calculateRay2D(static_cast<float>(data.width), static_cast<float>(data.height), blt::vec2(d2.x(), d2.y()),
|
|
||||||
global_matrices.getView2D(), global_matrices.getOrtho()) << "\n";
|
global_matrices.getView2D(), global_matrices.getOrtho()) << "\n";
|
||||||
|
|
||||||
auto currentTime = blt::system::nanoTime();
|
auto currentTime = blt::system::nanoTime();
|
||||||
|
|
Loading…
Reference in New Issue