Skip to content

Commit

Permalink
Added new particle blending modes (mul, imul)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Aug 16, 2003
1 parent 77296f9 commit ed558d8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doomsday/Src/rend_main.c
Expand Up @@ -115,6 +115,16 @@ void Rend_BlendMode(blendmode_t mode)
gl.Func(DGL_BLENDING, DGL_SRC_ALPHA, DGL_ONE);
break;

case BM_MUL:
gl.Func(DGL_BLENDING_OP, DGL_ADD, 0);
gl.Func(DGL_BLENDING, DGL_ZERO, DGL_SRC_COLOR);
break;

case BM_INVERSE_MUL:
gl.Func(DGL_BLENDING_OP, DGL_ADD, 0);
gl.Func(DGL_BLENDING, DGL_ZERO, DGL_ONE_MINUS_SRC_COLOR);
break;

default:
gl.Func(DGL_BLENDING_OP, DGL_ADD, 0);
gl.Func(DGL_BLENDING, DGL_SRC_ALPHA, DGL_ONE_MINUS_SRC_ALPHA);
Expand Down

0 comments on commit ed558d8

Please sign in to comment.