看板 C_and_CPP 關於我們 聯絡資訊
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) VC++ 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) OpenGL 問題(Question): 想要做一個材質貼圖的開關在keyboard,google一下好像是使用glEnable 不過使用後卻沒有反應,想請教一下問題在哪 程式碼(Code):(請善用置底文網頁, 記得排版) [img]http://i.imgur.com/ndHkww6.png[/img] 補充說明(Supplement): -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.114.27.242 ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1465123891.A.F55.html
iamstudent: 有呼叫重畫嗎? 06/05 19:08
iamstudent: 另外你這樣只適合很簡單的程式 06/05 19:09
iamstudent: 如果display畫東西有好幾個pass,中途就開關很多次了 06/05 19:09
iamstudent: 我隱約看見你程式有shader 06/05 19:11
iamstudent: 如果你用shader畫,貼圖的enable/disable會無效 06/05 19:11
iamstudent: shader只看貼圖的binding、filter與repeat 06/05 19:12
iamstudent: 有無enable沒差,顏色的replace或module也沒差 06/05 19:13
iamstudent: 顏色用法完全看shader code內容 06/05 19:13
shuian88: 所以我只能在gl_Fragcolor那邊把Texture拿掉嗎 06/05 20:08