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);