Working 2d example, needed the vertex drawing order changed.
Some checks are pending
ci/woodpecker/push/woodpecker.json Pipeline is pending

This commit is contained in:
Rebekah 2024-07-28 16:01:43 -04:00
parent 0424e339a6
commit e2a14db15f
Signed by: oneechanhax
GPG Key ID: 0074BF373B812798

View File

@ -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 = {