幾何着色器(Geometry Shader)是 Shader Model 4.0的標準規格,DirectX 10與OpenGL 3.1已有支援幾何着色器[1]

Shader Model 4.0引進了幾何着色器,可使用Shader 資源來處理graphics pipeline 的點、線、面的幾何坐標變換[2],一次最多處理6個點,快速地將模型類似的頂點結合起來進行運算。此一過程無需CPU參與。NVIDIA公司的GeForce 8800 圖形處理器是第一個提供硬件支持的幾何着色器[3]

幾何着色器典型用途包括: point sprite 的生成, 幾何鑲嵌(tessellation), 陰影體(shadow volume) extrusion。

幾何着色器可以藉由 Cg, Direct3D的 HLSL, OpenGL的GLSL等語言來完成。

註釋

Wikiwand in your browser!

Seamless Wikipedia browsing. On steroids.

Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.

Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.