Add another element to the texture tuple with a mask for the lighting.
Make needed changes in textures.py. Because some textures have garbage in the alpha channel, this new method has some problems.
This commit is contained in:
@@ -54,9 +54,9 @@ rendermode_night_occluded(void *data, RenderState *state) {
|
||||
}
|
||||
|
||||
static void
|
||||
rendermode_night_draw(void *data, RenderState *state, PyObject *src, PyObject *mask) {
|
||||
rendermode_night_draw(void *data, RenderState *state, PyObject *src, PyObject *mask, PyObject *mask_light) {
|
||||
/* nothing special to do */
|
||||
rendermode_lighting.draw(data, state, src, mask);
|
||||
rendermode_lighting.draw(data, state, src, mask, mask_light);
|
||||
}
|
||||
|
||||
RenderModeInterface rendermode_night = {
|
||||
|
||||
Reference in New Issue
Block a user