0

Draw ice in the same way is done with water and glass and shade it like water.

This commit is contained in:
Alejandro Aguilera
2011-08-03 11:04:03 +02:00
parent f7e1867588
commit a2b156c85f
3 changed files with 17 additions and 11 deletions

View File

@@ -293,7 +293,7 @@ rendermode_lighting_draw(void *data, RenderState *state, PyObject *src, PyObject
self = (RenderModeLighting *)data;
x = state->x, y = state->y, z = state->z;
if (state->block == 9) { /* special case for water */
if ((state->block == 9) || (state->block == 79)) { /* special case for water and ice */
/* looks like we need a new case for lighting, there are
* blocks that are transparent and need per-face shading
* if the face is drawn. */