Archived
1
Fork 0

Remove extraneous debug messages

This commit is contained in:
redstrate 2020-08-17 10:11:58 -04:00
parent cb3f9d3202
commit 2181611c2e
4 changed files with 5 additions and 17 deletions

View file

@ -442,10 +442,8 @@ void Renderer::render_camera(GFXCommandBuffer* command_buffer, Scene& scene, Obj
if(mesh.materials[material_index].handle == nullptr || mesh.materials[material_index]->static_pipeline == nullptr)
continue;
if(render_options.enable_frustum_culling && !test_aabb_frustum(frustum, get_aabb_for_part(scene.get<Transform>(obj), part))) {
console::debug(System::Renderer, "Culled {}!", scene.get(obj).name);
if(render_options.enable_frustum_culling && !test_aabb_frustum(frustum, get_aabb_for_part(scene.get<Transform>(obj), part)))
continue;
}
command_buffer->set_pipeline(mesh.mesh->bones.empty() ? mesh.materials[material_index]->static_pipeline : mesh.materials[material_index]->skinned_pipeline);

View file

@ -255,10 +255,8 @@ void SceneCapture::render(GFXCommandBuffer* command_buffer, Scene* scene) {
if(mesh.materials[material_index].handle == nullptr || mesh.materials[material_index]->static_pipeline == nullptr)
continue;
if(render_options.enable_frustum_culling && !test_aabb_frustum(frustum, get_aabb_for_part(scene->get<Transform>(obj), part))) {
console::debug(System::Renderer, "Scene Culled {}!", scene->get(obj).name);
if(render_options.enable_frustum_culling && !test_aabb_frustum(frustum, get_aabb_for_part(scene->get<Transform>(obj), part)))
continue;
}
command_buffer->set_pipeline( mesh.materials[material_index]->capture_pipeline);

View file

@ -139,10 +139,8 @@ void ShadowPass::render_meshes(GFXCommandBuffer* command_buffer, Scene& scene, c
command_buffer->set_depth_bias(1.25f, 0.00f, 1.75f);
for (auto& part : mesh.mesh->parts) {
if(render_options.enable_frustum_culling && !test_aabb_frustum(frustum, get_aabb_for_part(scene.get<Transform>(obj), part))) {
console::debug(System::Renderer, "Shadow Culled {}!", scene.get(obj).name);
if(render_options.enable_frustum_culling && !test_aabb_frustum(frustum, get_aabb_for_part(scene.get<Transform>(obj), part)))
continue;
}
command_buffer->draw_indexed(part.index_count, part.index_offset, part.vertex_offset);
}
@ -165,10 +163,8 @@ void ShadowPass::render_meshes(GFXCommandBuffer* command_buffer, Scene& scene, c
command_buffer->set_depth_bias(1.25f, 0.00f, 1.75f);
for (auto& part : mesh.mesh->parts) {
if(render_options.enable_frustum_culling && !test_aabb_frustum(frustum, get_aabb_for_part(scene.get<Transform>(obj), part))) {
console::debug(System::Renderer, "Shadow Culled {}!", scene.get(obj).name);
if(render_options.enable_frustum_culling && !test_aabb_frustum(frustum, get_aabb_for_part(scene.get<Transform>(obj), part)))
continue;
}
command_buffer->bind_shader_buffer(part.bone_batrix_buffer, 0, 1, sizeof(Matrix4x4) * 128);
command_buffer->draw_indexed(part.index_count, part.index_offset, part.vertex_offset);

View file

@ -162,8 +162,6 @@ void CommonEditor::update(float deltaTime) {
}
if(object.type == SelectableObject::Type::Handle) {
console::debug(System::Game, "Selected axis {}!", utility::enum_to_string(object.axis));
transforming_axis = true;
axis = object.axis;
previous_intersect = 0.0;
@ -229,9 +227,7 @@ void CommonEditor::update(float deltaTime) {
previous_intersect = current_intersect;
const float delta = current_intersect - previous_intersect;
console::debug(System::Game, "{} {}", std::to_string(current_intersect), std::to_string(previous_intersect));
previous_intersect = current_intersect;
switch(axis) {