Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
通过使用纹理图像,我在场景中创建了对象。但有个问题 ; 它的颜色不是蓝色,而是绿色。该错误的可能原因是什么?
尝试GL_BGR改用。
GL_BGR
glTexImage2D(GL_TEXTURE_2D, 0, 3, width, height, 0, GL_BGR, GL_UNSIGNED_BYTE, data);