diff options
author | quou <quou@disroot.org> | 2024-12-30 10:25:26 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-30 10:25:26 +1100 |
commit | b27cc55aa631c52dae4a1a9c8c6888fc063fe022 (patch) | |
tree | efdb66a4c4e8a223f77da9eab100c21c468f1a2a /model.cpp | |
parent | 693a133cb1a0356f3257f2879be4e23cbb67cbe3 (diff) |
backface culling
Diffstat (limited to 'model.cpp')
-rw-r--r-- | model.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -209,6 +209,7 @@ void Model::render( pb.depth(true, true, Depth_Mode::less); else pb.depth(true, false, Depth_Mode::equal); + pb.cull(Cull_Mode::back); pb.shader(mesh.shader); pb.cbuffer( mesh.mvp_binding, |