diff options
| author | HampusM <hampus@hampusmat.com> | 2026-04-19 18:28:40 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-04-19 18:28:40 +0200 |
| commit | 108c4ba52ad24ac4e370f1a303a68325fbd3f53e (patch) | |
| tree | 6fcaacf581c4ddbab4f3a46193db8234e4c53da8 /engine/src/renderer/opengl.rs | |
| parent | 6171fb6c9157593906bbc0fe5145405f10131123 (diff) | |
feat(engine): add face culling on/off to renderer draw properties
Diffstat (limited to 'engine/src/renderer/opengl.rs')
| -rw-r--r-- | engine/src/renderer/opengl.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engine/src/renderer/opengl.rs b/engine/src/renderer/opengl.rs index 81cbdc2..a713d41 100644 --- a/engine/src/renderer/opengl.rs +++ b/engine/src/renderer/opengl.rs @@ -1245,6 +1245,16 @@ fn handle_commands( .into(), ); } + + if draw_props_update_flags + .contains(DrawPropertiesUpdateFlags::FACE_CULLING_ENABLED) + { + set_enabled( + curr_gl_ctx, + Capability::CullFace, + draw_props.face_culling_enabled, + ); + } } } } |
