혼합 내가 는 OpenGL -
actual = <some color loaded from texture>;
actual.a *= 0.05; //reduce the alpha to have a more transparent result
//Front to back blending
actual.rgb *= actual.a;
last = (1.0 - last.a) * actual + last;
PS
의주기에서 혼합 색상의 이런 종류의 raycasting 한이 방정식은 OpenGL은 3 블렌딩 기능을 사용하려면 다시 할 수 있습니까? 목표는지금까지 나는이 사용하고 자신을 더 qauds를 렌더링함으로써 PS에서 사이클을 제거하는 것입니다 : glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
,하지만 결과는
편집 다른 같습니다이
last = cumulated color (aka. final color)
actual = current color from texture
'마지막'과 '실제'가 무엇인지 명확히 설명해 주시겠습니까? 'actual'는 현재 소스 색상이고'last'는 목적지 색상이며, 마지막은 framebuffer의 현재 값입니까? – thokra
@thokra 질문을 편집했습니다. –