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;