Realistic View: Phong Shading + Ambient Oclusion + Cast Shadows (#13704)
* Phong Shading * Add shader selection to graphics preferences * SSAO * 3D canvas menu Co-Authored-By: yw4z <yw4z@outlook.com> * better SSAO * Adjust * phong in preview mode * cast shadows sombra 3 sombra 2 * fix 1 * SSAO independent * Fix 2 * clean 1 * shadows availables with gouraud * Update Preferences.cpp * tweeks * No Normal textures * Depth texture allocation * avoid rebinding/redefining state each render. * free SSAO * set shadow fill color * remove duplicated code * cached model to avoid per-frame uploads * yw4z suggestion Co-Authored-By: yw4z <yw4z@outlook.com> * Update Preferences.cpp Co-Authored-By: yw4z <yw4z@outlook.com> * Update GLCanvas3D.cpp * only gouraud for preview mode * Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Add new OpenGL shading model setting * Update src/slic3r/GUI/GLCanvas3D.cpp * Apply suggestion from @RF47 * Title Case * normal textures * gamma 2.2 Co-Authored-By: Ian Bassi <12130714+ianalexis@users.noreply.github.com> * Revert "gamma 2.2" This reverts commit 909a84af604a080b3f4b8dd67d13956473a77afe. * Reapply "gamma 2.2" This reverts commit 0f0c3d9ec0d2c9647ce06afac4fe9266b5ffda97. * AO blend Co-Authored-By: Ian Bassi <12130714+ianalexis@users.noreply.github.com> * Revert "AO blend" This reverts commit c5c9a3aa6b295704e71299451b937648e5c5f109. * 4.0 pixel radius * windows light effect direccion brillo * smoothing * ajuste de brillo * ajustes de brillo * No SSAO for bed * disable realistic view on paint gismos * Update ssao.fs * circular panel --------- Co-authored-by: yw4z <yw4z@outlook.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: Ian Bassi <ian.bassi@outlook.com> Co-authored-by: Ian Bassi <12130714+ianalexis@users.noreply.github.com> Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
@@ -264,6 +264,21 @@ void AppConfig::set_defaults()
|
||||
if (get(SETTING_OPENGL_SHOW_FPS_OVERLAY).empty())
|
||||
set_bool(SETTING_OPENGL_SHOW_FPS_OVERLAY, false);
|
||||
|
||||
if (get(SETTING_OPENGL_REALISTIC_MODE).empty())
|
||||
set_bool(SETTING_OPENGL_REALISTIC_MODE, false);
|
||||
|
||||
if (get(SETTING_OPENGL_REALISTIC_PHONG).empty())
|
||||
set_bool(SETTING_OPENGL_REALISTIC_PHONG, true);
|
||||
|
||||
if (get(SETTING_OPENGL_SHADING_MODEL).empty())
|
||||
set(SETTING_OPENGL_SHADING_MODEL, "gouraud");
|
||||
|
||||
if (get(SETTING_OPENGL_PHONG_BASIC_PLATE_SHADOWS).empty())
|
||||
set_bool(SETTING_OPENGL_PHONG_BASIC_PLATE_SHADOWS, false);
|
||||
|
||||
if (get(SETTING_OPENGL_PHONG_SSAO).empty())
|
||||
set_bool(SETTING_OPENGL_PHONG_SSAO, false);
|
||||
|
||||
if (get("export_sources_full_pathnames").empty())
|
||||
set_bool("export_sources_full_pathnames", false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user