Python OpenGL and PyOpenGL - s02e14 - color picking p3

preview_player
Показать описание
Send the color values to the fragment shader as integers instead of floats. So now you can define more than 16 million color values.

Рекомендации по теме
Комментарии
Автор

You cna make it simpler by using a gray scale to color your cubes.
I am not sure how to change the texture and FBO parameters to do it, but you can essentially ID you cubes with a number instead of a color. It's simpler for comparisons.

namenloss