mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- revert default planes to static in gl_sprite.cpp
This commit is contained in:
parent
a0d0d9339e
commit
dbad946fe3
2 changed files with 3 additions and 4 deletions
|
@ -237,9 +237,8 @@ void GLSprite::Draw(int pass)
|
||||||
if (lightlist)
|
if (lightlist)
|
||||||
{
|
{
|
||||||
// set up the light slice
|
// set up the light slice
|
||||||
#pragma message ("Undo this!")
|
static secplane_t bottommost = { {0, 0, 1.}, FLT_MAX };
|
||||||
secplane_t bottommost; bottommost.set(0, 0, FRACUNIT, 32767 << FRACBITS);
|
static secplane_t topmost = { { 0, 0, 1. }, -FLT_MAX };
|
||||||
secplane_t topmost; topmost.set(0, 0, FRACUNIT, -(32767 << FRACBITS));
|
|
||||||
|
|
||||||
secplane_t *topplane = i == 0 ? &topmost : &(*lightlist)[i].plane;
|
secplane_t *topplane = i == 0 ? &topmost : &(*lightlist)[i].plane;
|
||||||
secplane_t *lowplane = i == (*lightlist).Size() - 1 ? &bottommost : &(*lightlist)[i + 1].plane;
|
secplane_t *lowplane = i == (*lightlist).Size() - 1 ? &bottommost : &(*lightlist)[i + 1].plane;
|
||||||
|
|
|
@ -307,7 +307,7 @@ struct secplane_t
|
||||||
// the plane is defined as a*x + b*y + c*z + d = 0
|
// the plane is defined as a*x + b*y + c*z + d = 0
|
||||||
// ic is 1/c, for faster Z calculations
|
// ic is 1/c, for faster Z calculations
|
||||||
|
|
||||||
private:
|
//private:
|
||||||
DVector3 normal;
|
DVector3 normal;
|
||||||
double D, negiC; // negative iC because that also saves a negation in all methods using this.
|
double D, negiC; // negative iC because that also saves a negation in all methods using this.
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in a new issue