如果我写
glColor4f(1.0,0,0, 1.0);
glReadPixels(touch1Point.x,viewport[3]-touch1Point.y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, &pixelColor[0]);
pixelColor return 255 , 0 , 0什么是正确的glReadPixels调用,才能返回1.0 0 0?
发布于 2010-09-16 02:22:02
将pixelColor的每个组件除以255.0f
https://stackoverflow.com/questions/3719906
复制相似问题