mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-06-21 18:17:03 +08:00
feat: pbr (#20)
* feat: add pbr texture * feat(rendering): add normal mapping support for blocks * fix: normal map load * feat(scripts): add batch nearest neighbor upscale script
This commit is contained in:
@@ -617,6 +617,10 @@ void DevPanel::show_shader_tab_item() {
|
||||
static const char* samples[] = {"8", "16", "32"};
|
||||
if (ImGui::BeginTabItem("shader")) {
|
||||
ImGui::Checkbox("Shader", &m_app.renderer().shader_on());
|
||||
ImGui::SameLine();
|
||||
ImGui::Checkbox("PBR", &m_app.renderer().pbr());
|
||||
ImGui::SameLine();
|
||||
ImGui::Checkbox("Flip Y", &m_app.renderer().flip_y());
|
||||
if (ImGui::SliderFloat("AmbientStrength",
|
||||
&m_app.renderer().ambient_strength(), 0.0f,
|
||||
0.35f))
|
||||
|
||||
Reference in New Issue
Block a user