添加背面剔除模式。
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user