0

depth-tinting, depth, and height-fading render primitives fixed for anvil

This commit is contained in:
Aaron Griffith
2012-02-21 14:36:46 -05:00
parent 136ea70281
commit a8c298fe4e
4 changed files with 16 additions and 8 deletions

View File

@@ -37,7 +37,8 @@ depth_start(void *data, RenderState *state, PyObject *support) {
static int
depth_hidden(void *data, RenderState *state, int x, int y, int z) {
PrimitiveDepth *self = (PrimitiveDepth *)data;
if (z > self->max || z < self->min) {
y += 16 * state->chunky;
if (y > self->max || y < self->min) {
return 1;
}
return 0;