From b55d4b960077ad48838c23db17e4d10930703a79 Mon Sep 17 00:00:00 2001 From: Xiang Silian Date: Wed, 15 Oct 2025 10:06:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=83=8C=E9=9D=A2=E5=89=94?= =?UTF-8?q?=E9=99=A4=E6=A8=A1=E5=BC=8F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- samples/api/texture_loading/texture_loading.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/api/texture_loading/texture_loading.cpp b/samples/api/texture_loading/texture_loading.cpp index fbd13cc..32b8597 100644 --- a/samples/api/texture_loading/texture_loading.cpp +++ b/samples/api/texture_loading/texture_loading.cpp @@ -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;