[Reference] The OpenGL SuperBible
"The other shading model that can be specified with glShadeModel is GL_FLAT for flat shading. Flat
shading means that no shading calculations are performed on the interior of primitives. Generally,
with flat shading, the color of the primitive's interior is the color that was specified for the last
vertex. The only exception is for a GL_POLYGON primitive, in which case the color is that of the first
vertex."
使用 glShadeModel() 可設定三角形或多邊形內部顏色的著色方式,有二個可使用的參數 GL_SMOOTH 和 GL_FLAT。
GL_SMOOTH 將三角形或多邊形的各個頂點的顏色加以計算,於其內部漸層著色。
GL_FLAT只取用三角形或多邊形單一頂點的顏色作為其內部的顏色。在三角形取最後一點的顏色,多邊形則取用第一點的顏色。
Subscribe to:
Post Comments (Atom)
phpMyAdmin 無法存取 MariaDB 10 的解決方法
[Reference] https://www.qnap.com/zh-tw/how-to/faq/article/%E7%82%BA%E4%BB%80%E9%BA%BC%E7%84%A1%E6%B3%95%E5%9C%A8-phpmyadmin-%E5%AD%98%E5%8...
-
[ M LiDAR Viewer ] Windows 7 環境下, 在OpenGL視窗使用GDI即時繪圖,例如操作滑鼠繪出框選矩形時, 原來在視窗上的圖案會被清除。此時必須關閉[桌面轉譯緩衝處理]。 1.在程式的圖案上按滑鼠右鍵, 開啟程式[內容]對話盒. 2.按[相容性]頁面...
-
看這裏 http://social.technet.microsoft.com/Forums/en/w7itpronetworking/thread/1f22d98f-e150-4a54-9967-1641fa86dbc5
-
[Reference] http://www.programmer-club.com.tw/ShowSameTitleN/cb/10992.html 在主程式 WinMain() 加入下面程式碼 WINAPI WinMain(HINSTANCE, HINSTANCE, LPST...
No comments:
Post a Comment