Ver a proveniência

Removed some debug printing

devel
Ludovic 'Archivist' Lagouardette há 4 anos
ascendente
cometimento
23665e9550
2 ficheiros alterados com 5 adições e 12 eliminações
  1. +0
    -7
      include/gp/rendering/bmp_viewport.hpp
  2. +5
    -5
      tests/math.cpp

+ 0
- 7
include/gp/rendering/bmp_viewport.hpp Ver ficheiro

@ -125,13 +125,6 @@ namespace gp{
filesize = pixel_array_end - destination.begin();
image_size = pixel_array_end - pixel_array_start;
std::cout << width << std::endl;
std::cout << height << std::endl;
std::cout << filesize << std::endl;
std::cout << image_size << std::endl;
return it;
}
};

+ 5
- 5
tests/math.cpp Ver ficheiro

@ -78,12 +78,12 @@ struct render_test : public test_scaffold {
}
);
auto l_sdf = gp::difference_sdf<float>(
gp::sphere_sdf<float>({0.0,0.0,0.0}, 1.0),
gp::sphere_sdf<float>({-0.75,0.0,0.0}, 1.0)
);
auto sphere = a.scene_elements.push(
[&](vec3 pos) -> render_point {
auto l_sdf = gp::difference_sdf<float>(
gp::sphere_sdf<float>({0.0,0.0,0.0}, 1.0),
gp::sphere_sdf<float>({-0.75,0.0,0.0}, 1.0)
);
render_point ret;
ret.distance = l_sdf(pos);
ret.material = red;
@ -91,9 +91,9 @@ struct render_test : public test_scaffold {
}
);
auto l_sdf_b = gp::sphere_sdf<float>({-0.75,0.0,0.0}, 1.0);
auto sphere2 = a.scene_elements.push(
[&](vec3 pos) -> render_point {
auto l_sdf_b = gp::sphere_sdf<float>({-0.75,0.0,0.0}, 1.0);
render_point ret;
ret.distance = l_sdf_b(pos);
ret.material = green;

Carregando…
Cancelar
Guardar