PckStudio(SkinRenderer) - Add property 'RenderSkyBox'

This commit is contained in:
miku-666
2025-11-28 06:35:56 +01:00
parent 3d301c958e
commit d835deae0d

View File

@@ -114,6 +114,7 @@ namespace PckStudio.Rendering
}
public bool CenterOnSelect { get; set; } = false;
public bool RenderSkyBox { get; set; } = true;
public bool ShowBoundingBox { get; set; }
public bool ShowArmor { get; set; } = false;
public bool Animate { get; set; } = true;
@@ -824,7 +825,7 @@ namespace PckStudio.Rendering
GL.Enable(EnableCap.LineSmooth);
Matrix4 viewProjection = Camera.GetViewProjection();
// Render Skybox
if (RenderSkyBox)
{
GL.DepthFunc(DepthFunction.Lequal);
GL.DepthMask(false);