mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
cosmetics on terrain patchs
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -62,17 +62,13 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
double h10 = map[(int) x + stepSize, (int) y];
|
||||
double h01 = map[(int) x, (int) y + stepSize];
|
||||
double h11 = map[(int) x + stepSize, (int) y + stepSize];
|
||||
double h1 = h00;
|
||||
double h2 = h10;
|
||||
double h3 = h01;
|
||||
double h4 = h11;
|
||||
double a00 = h1;
|
||||
double a10 = h2 - h1;
|
||||
double a01 = h3 - h1;
|
||||
double a11 = h1 - h2 - h3 + h4;
|
||||
double a00 = h00;
|
||||
double a10 = h10 - h00;
|
||||
double a01 = h01 - h00;
|
||||
double a11 = h11 - h10 - h01 + h00;
|
||||
double partialx = x - (int) x;
|
||||
double partialz = y - (int) y;
|
||||
double hi = a00 + (a10 * partialx) + (a01 * partialz) + (a11 * partialx * partialz);
|
||||
double partialy = y - (int) y;
|
||||
double hi = a00 + (a10 * partialx) + (a01 * partialy) + (a11 * partialx * partialy);
|
||||
return hi;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user