문제
이미지가 있습니다. 그 위에 나는 반 투명 다각형을 그립니다. 반 투명 다각형을 통해 나는 선을 그립니다.
나는이 라인을 하얗게 만드는 것 같다. 마치 이미지 나 다각형과 혼합되는 것처럼 보입니다.
glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
glDrawArrays(GL_LINE_LOOP, 0, area.polygonShapeData.totalPoints);
이 라인을 흰색으로 만들기 위해 무엇을 할 수 있습니까? 어두운 회색으로 나옵니다.
해결책
Do you use anti-aliasing? I've noticed hair thin lines coming out faded if GL_LINE_SMOOTH is enabled. Also try increasing the width with glLineWidth.
다른 팁
Perhaps you've got blending enabled in something like GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA mode? Try glDisable(GL_BLEND) and see if you get better results.
제휴하지 않습니다 StackOverflow