mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
Improve LOD scaling for anisotropic sculpted prim meshes
This commit is contained in:
@@ -91,7 +91,8 @@ namespace PrimMesher
|
||||
normals = new List<Coord>();
|
||||
uvs = new List<UVCoord>();
|
||||
|
||||
float sourceScaleFactor = (float)lod / (float)Math.Max(sculptBitmap.Width, sculptBitmap.Height);
|
||||
//float sourceScaleFactor = (float)lod / (float)Math.Max(sculptBitmap.Width, sculptBitmap.Height);
|
||||
float sourceScaleFactor = (float)(lod * lod) / (float)(sculptBitmap.Width * sculptBitmap.Height);
|
||||
bool scaleSourceImage = sourceScaleFactor < 1.0f ? true : false;
|
||||
|
||||
Bitmap bitmap;
|
||||
|
||||
Reference in New Issue
Block a user