almost nail down the rendering

This commit is contained in:
bird_egop
2026-06-06 01:24:09 +03:00
parent 0d8e4ba491
commit 776bb9fcb3
4 changed files with 141 additions and 86 deletions
@@ -93,16 +93,11 @@ public sealed class ViewportRenderer
if (grid == null || !grid.IsVisible)
return;
var model = grid.LocalTransform * sceneRotation;
var mvp = model * view * projection;
_gl.Disable(EnableCap.StencilTest);
_gl.PolygonMode(TriangleFace.FrontAndBack, PolygonMode.Fill);
_meshShader.Use();
_meshShader.SetMatrix4(_mvpLocation, mvp);
grid.Mesh.Draw();
var model = grid.LocalTransform * sceneRotation;
DrawMesh(grid.Mesh, model, view, projection);
}
private void DrawScene(