Fix dumb in LLSurface, don't do dumb math
This commit is contained in:
@@ -167,10 +167,10 @@ void LLSurface::create(const S32 grids_per_edge,
|
|||||||
mGridsPerEdge = grids_per_edge + 1; // Add 1 for the east and north buffer
|
mGridsPerEdge = grids_per_edge + 1; // Add 1 for the east and north buffer
|
||||||
mOOGridsPerEdge = 1.f / mGridsPerEdge;
|
mOOGridsPerEdge = 1.f / mGridsPerEdge;
|
||||||
mGridsPerPatchEdge = grids_per_patch_edge;
|
mGridsPerPatchEdge = grids_per_patch_edge;
|
||||||
mPatchesPerEdge = (mGridsPerEdge - 1) / mGridsPerPatchEdge;
|
mPatchesPerEdge = grids_per_edge / mGridsPerPatchEdge;
|
||||||
mNumberOfPatches = mPatchesPerEdge * mPatchesPerEdge;
|
mNumberOfPatches = mPatchesPerEdge * mPatchesPerEdge;
|
||||||
mMetersPerGrid = width / ((F32)(mGridsPerEdge - 1));
|
mMetersPerGrid = width / (F32)grids_per_edge;
|
||||||
mMetersPerEdge = mMetersPerGrid * (mGridsPerEdge - 1);
|
mMetersPerEdge = mMetersPerGrid * grids_per_edge;
|
||||||
// <FS:CR> Aurora Sim
|
// <FS:CR> Aurora Sim
|
||||||
sTextureSize = width;
|
sTextureSize = width;
|
||||||
// </FS:CR> Aurora Sim
|
// </FS:CR> Aurora Sim
|
||||||
|
|||||||
Reference in New Issue
Block a user