点对点

This commit is contained in:
2025-07-26 20:12:34 +08:00
parent 4febfadd56
commit 68182d7764
11 changed files with 253 additions and 38 deletions

View File

@@ -192,9 +192,7 @@ namespace NBF
this.UnloadModel();
_model = model.transform;
_model.SetParent(this.modelRoot, false);
var h = CalculateModelHeight(model); //计算包围盒高度
var pos = _model.localPosition;
_model.localPosition = new Vector3(pos.x, pos.y - h * 0.5f, pos.z);
_model.AlignmentParentCenter();
}
public void UnloadModel()
@@ -250,7 +248,7 @@ namespace NBF
_renderTexture = new RenderTexture(_width, _height, 24, RenderTextureFormat.ARGB32)
{
antiAliasing = 1,
antiAliasing = 2,
filterMode = FilterMode.Bilinear,
anisoLevel = 0,
useMipMap = false