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:
@@ -71,7 +71,7 @@ rendermode_overlay_occluded(void *data, RenderState *state) {
|
||||
}
|
||||
|
||||
static void
|
||||
rendermode_overlay_draw(void *data, RenderState *state, PyObject *src, PyObject *mask) {
|
||||
rendermode_overlay_draw(void *data, RenderState *state, PyObject *src, PyObject *mask, PyObject *mask_light) {
|
||||
RenderModeOverlay *self = (RenderModeOverlay *)data;
|
||||
unsigned char r, g, b, a;
|
||||
PyObject *top_block_py, *block_py;
|
||||
|
||||
Reference in New Issue
Block a user