feat: entity translucent pass & test layered transparency pipeline

This commit is contained in:
MihailRis 2026-10-16 22:20:59 +03:00
parent e7f030f226
commit 7522016e84
19 changed files with 484 additions and 111 deletions

View file

@ -19,6 +19,14 @@ static void set_blend_mode(BlendMode mode) {
case BlendMode::inversion:
glBlendFunc(GL_ONE_MINUS_DST_COLOR, GL_ONE_MINUS_SRC_ALPHA);
break;
case BlendMode::coverage:
glBlendFuncSeparate(
GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA
);
break;
case BlendMode::premultiplied:
glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
break;
}
}