添加背面剔除模式。

This commit is contained in:
xsl
2025-10-15 10:06:28 +08:00
parent 463b4724c9
commit b55d4b9600
@@ -993,6 +993,9 @@ void TextureLoading::prepare_pipelines()
VK_FRONT_FACE_COUNTER_CLOCKWISE,
0);
rasterization_state.cullMode = VK_CULL_MODE_BACK_BIT;
rasterization_state.frontFace = VK_FRONT_FACE_CLOCKWISE;
//VkPipelineColorBlendAttachmentState blend_attachment_state =
// vkb::initializers::pipeline_color_blend_attachment_state(
// 0xf,
@@ -1368,7 +1371,7 @@ bool TextureLoading::prepare(const vkb::ApplicationOptions& options)
last_update_time = getCurrentTimeMillis();
myFloatValue = 1.f;
//myFloatValue = 1.f;
// --- 加载前景纹理 (示例) ---
int width = 640;