- fixed plane access in GL code.
This commit is contained in:
parent
7486e24cd9
commit
f6b33acbb1
2 changed files with 10 additions and 13 deletions
|
|
@ -275,14 +275,18 @@ public:
|
|||
|
||||
void SetGlowPlanes(const secplane_t &top, const secplane_t &bottom)
|
||||
{
|
||||
mGlowTopPlane.Set(top.fA(), top.fB(), 1. / top.fC(), top.fD());
|
||||
mGlowBottomPlane.Set(bottom.fA(), bottom.fB(), 1. / bottom.fC(), bottom.fD());
|
||||
DVector3 tn = top.Normal();
|
||||
DVector3 bn = bottom.Normal();
|
||||
mGlowTopPlane.Set(tn.X, tn.Y, 1. / tn.Z, top.fD());
|
||||
mGlowBottomPlane.Set(bn.X, bn.Y, 1. / bn.Z, bottom.fD());
|
||||
}
|
||||
|
||||
void SetSplitPlanes(const secplane_t &top, const secplane_t &bottom)
|
||||
{
|
||||
mSplitTopPlane.Set(top.fA(), top.fB(), 1. / top.fC(), top.fD());
|
||||
mSplitBottomPlane.Set(bottom.fA(), bottom.fB(), 1. / bottom.fC(), bottom.fD());
|
||||
DVector3 tn = top.Normal();
|
||||
DVector3 bn = bottom.Normal();
|
||||
mSplitTopPlane.Set(tn.X, tn.Y, 1. / tn.Z, top.fD());
|
||||
mSplitBottomPlane.Set(bn.X, bn.Y, 1. / bn.Z, bottom.fD());
|
||||
}
|
||||
|
||||
void SetDynLight(float r, float g, float b)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue