faceextents_t: move texmins out of structure
This commit is contained in:
parent
9edadf93cd
commit
02202b81bb
|
|
@ -706,6 +706,7 @@ faceextents_t::faceextents_t(const mface_t &face, const mbsp_t &bsp, float light
|
||||||
bounds += worldpoint;
|
bounds += worldpoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qvec2i texmins;
|
||||||
for (int i = 0; i < 2; i++) {
|
for (int i = 0; i < 2; i++) {
|
||||||
tex_bounds[0][i] = floor(tex_bounds[0][i] / lightmapshift);
|
tex_bounds[0][i] = floor(tex_bounds[0][i] / lightmapshift);
|
||||||
tex_bounds[1][i] = ceil(tex_bounds[1][i] / lightmapshift);
|
tex_bounds[1][i] = ceil(tex_bounds[1][i] / lightmapshift);
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,6 @@ constexpr size_t MAXDIMENSION = 255 + 1;
|
||||||
class faceextents_t
|
class faceextents_t
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
qvec2i texmins;
|
|
||||||
qvec2i texextents;
|
qvec2i texextents;
|
||||||
qmat4x4f worldToTexCoordMatrix;
|
qmat4x4f worldToTexCoordMatrix;
|
||||||
qmat4x4f texCoordToWorldMatrix;
|
qmat4x4f texCoordToWorldMatrix;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue