Archived
1
Fork 0

Remove some debug messages

This commit is contained in:
Joshua Goins 2022-04-04 08:22:25 -04:00
parent e6c227ca6b
commit eecc88ddcc
2 changed files with 0 additions and 10 deletions

View file

@ -28,12 +28,6 @@ using prism::engine;
engine::engine(const int argc, char* argv[]) { engine::engine(const int argc, char* argv[]) {
log("Prism Engine loading..."); log("Prism Engine loading...");
log("starting gfx debug:");
for(auto [t, t_name] : magic_enum::enum_entries<GFXContext>()) {
log("does platform support {}? {}", t_name, platform::supports_context(t));
}
console::register_command("echo", console::argument_format(1), [](const console::arguments& args) { console::register_command("echo", console::argument_format(1), [](const console::arguments& args) {
log(std::get<std::string>(args[0].data)); log(std::get<std::string>(args[0].data));
}); });
@ -126,8 +120,6 @@ void engine::prepare_quit() {
void engine::set_gfx(GFX* p_gfx) { void engine::set_gfx(GFX* p_gfx) {
Expects(p_gfx != nullptr); Expects(p_gfx != nullptr);
prism::log("this gfx has a context of {}", utility::enum_to_string(p_gfx->required_context()));
this->gfx = p_gfx; this->gfx = p_gfx;
} }

View file

@ -310,8 +310,6 @@ ShaderSource MaterialCompiler::compile_material_fragment(Material& material, boo
)"); )");
if(material.normalProperty.type == DataType::AssetTexture) { if(material.normalProperty.type == DataType::AssetTexture) {
prism::log("enabling normal mapping on material..");
format_to(std::back_inserter(src), format_to(std::back_inserter(src),
R"(vec3 final_normal = texture(normalTexture, in_uv).rgb; R"(vec3 final_normal = texture(normalTexture, in_uv).rgb;
final_normal = final_normal * 2.0 - 1.0; final_normal = final_normal * 2.0 - 1.0;