mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-29 10:24:34 +00:00
PckStudio(SkinRenderer) - Add property 'RenderSkyBox'
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user