Skip to content
Snippets Groups Projects
Verified Commit 2344c726 authored by Tobias Frisch's avatar Tobias Frisch
Browse files

Add cull mode for both sides of a face

parent a7511257
No related branches found
No related tags found
1 merge request!97Resolve "Dokumentation vervollständigen"
......@@ -16,7 +16,7 @@
namespace vkcv {
enum class PrimitiveTopology{PointList, LineList, TriangleList, PatchList };
enum class CullMode{ None, Front, Back };
enum class CullMode{ None, Front, Back, Both };
enum class DepthTest { None, Less, LessEqual, Greater, GreatherEqual, Equal };
// add more as needed
......
......@@ -263,6 +263,9 @@ namespace vkcv
case CullMode::Back:
cullMode = vk::CullModeFlagBits::eBack;
break;
case CullMode::Both:
cullMode = vk::CullModeFlagBits::eFrontAndBack;
break;
default:
vkcv_log(LogLevel::ERROR, "Unknown CullMode");
cullMode = vk::CullModeFlagBits::eNone;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment