iT邦幫忙

0

OpenGL的ActiveTexture和BindTexture問題

如題,為什麼我每次輸出的都是wall.jpg啊??????
https://ithelp.ithome.com.tw/upload/images/20190201/201146633y7mLMPMur.png
https://ithelp.ithome.com.tw/upload/images/20190201/20114663YC4jOYMXOk.png

這是我根據https://learnopengl.com/Getting-started/Textures做的,而且我也不知道為什麼要把Active/Bindtexture放在循環裡??希望大佬解答一下
干!!!我發現要把Uniform傳遞寫在循環裡才有用
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答