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:
@@ -1554,6 +1554,30 @@ void PreferencesDialog::create_items()
|
||||
g_sizer = f_sizers.back();
|
||||
g_sizer->AddGrowableCol(0, 1);
|
||||
|
||||
//// GRAPHICS > Realistic view
|
||||
g_sizer->Add(create_item_title(_L("Realistic View")), 1, wxEXPAND);
|
||||
|
||||
auto item_realistic_phong = create_item_checkbox(
|
||||
_L("Phong shading"),
|
||||
_L("Uses Phong shading inside realistic view.")
|
||||
, SETTING_OPENGL_REALISTIC_PHONG
|
||||
);
|
||||
g_sizer->Add(item_realistic_phong);
|
||||
|
||||
auto item_realistic_ssao = create_item_checkbox(
|
||||
_L("SSAO ambient occlusion"),
|
||||
_L("Applies SSAO in realistic view."),
|
||||
SETTING_OPENGL_PHONG_SSAO
|
||||
);
|
||||
g_sizer->Add(item_realistic_ssao);
|
||||
|
||||
auto item_realistic_shadows = create_item_checkbox(
|
||||
_L("Shadows"),
|
||||
_L("Renders cast shadows on the plate in realistic view."),
|
||||
SETTING_OPENGL_PHONG_BASIC_PLATE_SHADOWS
|
||||
);
|
||||
g_sizer->Add(item_realistic_shadows);
|
||||
|
||||
//// GRAPHICS > Anti-aliasing
|
||||
g_sizer->Add(create_item_title(_L("Anti-aliasing")), 1, wxEXPAND);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user