]> 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)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 6 Sep 2011 17:02:34 +0000 (17:02 +0000)
commit2e6fc7e2da0e578063b0d6111db0d3012dc44908
tree6a5794c617bca1d05f86bf95329d6dede7c424d6
parentcf41db5c7b7f87d51ed62d8999338a2349eceb8d
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
gl_rsurf.c
model_shared.c