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 @@ ...@@ -16,7 +16,7 @@
namespace vkcv { namespace vkcv {
enum class PrimitiveTopology{PointList, LineList, TriangleList, PatchList }; 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 }; enum class DepthTest { None, Less, LessEqual, Greater, GreatherEqual, Equal };
// add more as needed // add more as needed
......
...@@ -263,6 +263,9 @@ namespace vkcv ...@@ -263,6 +263,9 @@ namespace vkcv
case CullMode::Back: case CullMode::Back:
cullMode = vk::CullModeFlagBits::eBack; cullMode = vk::CullModeFlagBits::eBack;
break; break;
case CullMode::Both:
cullMode = vk::CullModeFlagBits::eFrontAndBack;
break;
default: default:
vkcv_log(LogLevel::ERROR, "Unknown CullMode"); vkcv_log(LogLevel::ERROR, "Unknown CullMode");
cullMode = vk::CullModeFlagBits::eNone; cullMode = vk::CullModeFlagBits::eNone;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment