testing stuff

This commit is contained in:
2026-04-11 20:55:17 -05:00
parent 74ef4b9ea4
commit 57c6a6971d
2 changed files with 5 additions and 3 deletions

View File

@@ -112,6 +112,8 @@ public class ModelLoader {
material.specular.set(color.r(), color.g(), color.b());
}
material.shininess = 3.f;
return material;
}
}

View File

@@ -44,7 +44,7 @@ public class Tony {
.rotate((float)Math.toRadians(90), 1, 0, 0)
.scale(.2f);
camera = new OrthoCamera(1024.f / 720);
camera = new OrthoCamera(1920.f / 1080);
sun = new DirectionalLight(
new Vector3f(-3.0f, -3.0f, -0.5f),
@@ -74,7 +74,7 @@ public class Tony {
glfwWindowHint(GLFW_VISIBLE, GLFW_FALSE); // the window will stay hidden after creation
glfwWindowHint(GLFW_RESIZABLE, GLFW_TRUE); // the window will be resizable
window = glfwCreateWindow(1024, 720, "Tony %s".formatted(Version.getVersionString()), NULL, NULL);
window = glfwCreateWindow(1920, 1080, "Tony %s".formatted(Version.getVersionString()), NULL, NULL);
if ( window == NULL )
throw new RuntimeException("Failed to create the GLFW window");
@@ -104,7 +104,7 @@ public class Tony {
glfwShowWindow(window);
GL.createCapabilities();
glViewport(0, 0, 1024, 720);
glViewport(0, 0, 1920, 1080);
glEnable(GL_DEPTH_TEST);
glClearColor(0.33f, 0.48f, 0.48f, 1.0f);
}