]> git.xonotic.org Git - xonotic/darkplaces.git/commit
fix interaction of blendfunc with rtlights
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 6 Sep 2011 17:02:34 +0000 (17:02 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 11 Sep 2011 13:57:01 +0000 (15:57 +0200)
commit10257670f8e894fd73f82024ea23ab1c4aecba3b
tree6a5794c617bca1d05f86bf95329d6dede7c424d6
parentc3c3eb8ee7dd3c7ca9c32cbedf8d76e5667450f6
fix interaction of blendfunc with rtlights

basically, we exclude a number of CUSTOMBLEND blendfuncs from receiving rtlights
the rationale is not that doing this is always correct - it is not in some
cases (e.g. for crazy stuff like GL_ONE GL_SRC_COLOR). The rationale is that
the current behaviour for these is wrong too.

All surfaces that now receive rtlights, receive it correctly.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11326 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=2e6fc7e2da0e578063b0d6111db0d3012dc44908
gl_rsurf.c
model_shared.c