forked from 1b-agent/opencadstudio-upstream
fix(render): restore solid surface rendering
Keep viewport styles from disabling selected shaded modes.\n\nPack mesh shader inputs to stay within WebGL limits.
This commit is contained in:
1 parent
e0ead249b6
commit
a1f64d7663
3 files changed
+30
-77
No files matched your search
@@ -3195,13 +3195,8 @@ impl Scene {
|
||||
let display = self.viewport_display_settings(inst);
|
||||
let mut flags = render_mode_flags(inst.render_mode);
|
||||
if let Some(style) = display.visual_style.as_ref() {
|
||||
if flags.mesh_fill {
|
||||
flags.face3d_fill &= style.face_visible();
|
||||
flags.mesh_fill &= style.face_visible();
|
||||
flags.show_3d_edges = style.edges_visible();
|
||||
if style.face_lighting_quality == 1 {
|
||||
flags.flat_shade = true;
|
||||
}
|
||||
if flags.mesh_fill && style.face_lighting_quality == 1 {
|
||||
flags.flat_shade = true;
|
||||
}
|
||||
}
|
||||
let view_wireframe = !flags.face3d_fill;
|
||||
|
||||
Reference in new issue
Block a user