Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Clarification on negative viewport height and front-face culling

未關閉 適合新手
#534 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
72/100
Issue 類型
文件
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
cpp

研究方向

閱讀 issue 中連結的 Descriptor 版面配置與緩衝區章節,重點關注其中對投影矩陣手性、負 viewport 高度,以及啟用背面剔除時 frontFace 的討論。說明每種方法如何影響影格緩衝區座標中的三角形繞序,並區分 viewport 階段的 Y 軸翻轉與 clip-space 和 NDC 座標的變更。完成標準是清楚說明這兩種方法是否都需要考慮正面剔除。

由索引模型根據 Issue 內容生成。

描述

In the Descriptor layout and buffer chapter, the tutorial states:

it also flips the handedness of the projection matrix, which then requires flipping frontFace wherever back-face culling is enabled

It then recommends using a negative viewport height instead.

However, my understanding is that both approaches can reverse the triangle winding order in framebuffer coordinates, which may require adjusting frontFace, since Vulkan determines front-facing triangles based on their winding order in framebuffer coordinates.

The difference seems to be that flipping Y in the projection matrix also changes the clip-space and NDC coordinates, potentially affecting other operations that depend on the projection matrix. Using a negative viewport height avoids those changes by applying the Y-flip at the viewport stage.

Therefore, while the negative viewport height approach preserves the projection matrix, it doesn't eliminate the need to consider front-face culling.

Could this distinction be clarified in the explanation?

Thanks!

主要語言
C++
星號
436
分支
136
平均合併
9 天 16 小時
30 天內合併 PR
4

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

KhronosGroup/Vulkan-Tutorial 的其他 Issue

查看 KhronosGroup/Vulkan-Tutorial 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。