Working 2d example, needed the vertex drawing order changed.
Some checks are pending
ci/woodpecker/push/woodpecker.json Pipeline is pending
Some checks are pending
ci/woodpecker/push/woodpecker.json Pipeline is pending
This commit is contained in:
parent
0424e339a6
commit
e2a14db15f
10
src/main.cpp
10
src/main.cpp
@ -313,7 +313,7 @@ private:
|
||||
.rasterizerDiscardEnable = vk::False,
|
||||
.polygonMode = vk::PolygonMode::eFill,
|
||||
.cullMode = vk::CullModeFlagBits::eBack,
|
||||
.frontFace = vk::FrontFace::eCounterClockwise,
|
||||
.frontFace = UsesProjection() ? vk::FrontFace::eCounterClockwise : vk::FrontFace::eClockwise,
|
||||
.depthBiasEnable = vk::False,
|
||||
.depthBiasConstantFactor = 0.0f, // Optional
|
||||
.depthBiasClamp = 0.0f, // Optional
|
||||
@ -550,10 +550,10 @@ private:
|
||||
VulkanRenderPipeline<Vertex3> vk_pipeline_third;
|
||||
|
||||
static inline const std::vector<Vertex2> vertices_rect_sample = {
|
||||
{ { -0.5f, -0.5f }, { 1.0f, 0.0f, 0.0f }, { 0.0f, 0.0f } },
|
||||
{ { 0.5f, -0.5f }, { 0.0f, 1.0f, 0.0f }, { 1.0f, 0.0f } },
|
||||
{ { 0.5f, 0.5f }, { 0.0f, 0.0f, 1.0f }, { 1.0f, 1.0f } },
|
||||
{ { -0.5f, 0.5f }, { 1.0f, 1.0f, 1.0f }, { 0.0f, 1.0f } }
|
||||
{ { -0.2f, -0.2f }, { 1.0f, 0.0f, 0.0f }, { 0.0f, 0.0f } },
|
||||
{ { 0.2f, -0.2f }, { 0.0f, 1.0f, 0.0f }, { 1.0f, 0.0f } },
|
||||
{ { 0.2f, 0.2f }, { 0.0f, 0.0f, 1.0f }, { 1.0f, 1.0f } },
|
||||
{ { -0.2f, 0.2f }, { 1.0f, 1.0f, 1.0f }, { 0.0f, 1.0f } }
|
||||
};
|
||||
|
||||
static inline const std::vector<Vertex3> vertices_cube_sample = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user