mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
early-out big invisible polys
This commit is contained in:
parent
979896da75
commit
2459a7ddfc
@ -178,6 +178,10 @@ static void FNAME(flat_textured) (ZBuffer *zb,
|
|||||||
|
|
||||||
#define DRAW_INIT() \
|
#define DRAW_INIT() \
|
||||||
{ \
|
{ \
|
||||||
|
if (p2->a == 0 && !ACMP(zb, p2->a)) { \
|
||||||
|
/* This alpha is zero, and we'll never get other than 0. */ \
|
||||||
|
return; \
|
||||||
|
} \
|
||||||
texture_levels = zb->current_texture; \
|
texture_levels = zb->current_texture; \
|
||||||
or0 = p2->r; \
|
or0 = p2->r; \
|
||||||
og0 = p2->g; \
|
og0 = p2->g; \
|
||||||
@ -429,6 +433,10 @@ static void FNAME(flat_perspective) (ZBuffer *zb,
|
|||||||
|
|
||||||
#define DRAW_INIT() \
|
#define DRAW_INIT() \
|
||||||
{ \
|
{ \
|
||||||
|
if (p2->a == 0 && !ACMP(zb, p2->a)) { \
|
||||||
|
/* This alpha is zero, and we'll never get other than 0. */ \
|
||||||
|
return; \
|
||||||
|
} \
|
||||||
texture_levels = zb->current_texture; \
|
texture_levels = zb->current_texture; \
|
||||||
fdzdx=(float)dzdx; \
|
fdzdx=(float)dzdx; \
|
||||||
fndzdx=NB_INTERP * fdzdx; \
|
fndzdx=NB_INTERP * fdzdx; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user