testing stuff
This commit is contained in:
@@ -112,6 +112,8 @@ public class ModelLoader {
|
|||||||
material.specular.set(color.r(), color.g(), color.b());
|
material.specular.set(color.r(), color.g(), color.b());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
material.shininess = 3.f;
|
||||||
|
|
||||||
return material;
|
return material;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ public class Tony {
|
|||||||
.rotate((float)Math.toRadians(90), 1, 0, 0)
|
.rotate((float)Math.toRadians(90), 1, 0, 0)
|
||||||
.scale(.2f);
|
.scale(.2f);
|
||||||
|
|
||||||
camera = new OrthoCamera(1024.f / 720);
|
camera = new OrthoCamera(1920.f / 1080);
|
||||||
|
|
||||||
sun = new DirectionalLight(
|
sun = new DirectionalLight(
|
||||||
new Vector3f(-3.0f, -3.0f, -0.5f),
|
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_VISIBLE, GLFW_FALSE); // the window will stay hidden after creation
|
||||||
glfwWindowHint(GLFW_RESIZABLE, GLFW_TRUE); // the window will be resizable
|
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 )
|
if ( window == NULL )
|
||||||
throw new RuntimeException("Failed to create the GLFW window");
|
throw new RuntimeException("Failed to create the GLFW window");
|
||||||
|
|
||||||
@@ -104,7 +104,7 @@ public class Tony {
|
|||||||
glfwShowWindow(window);
|
glfwShowWindow(window);
|
||||||
|
|
||||||
GL.createCapabilities();
|
GL.createCapabilities();
|
||||||
glViewport(0, 0, 1024, 720);
|
glViewport(0, 0, 1920, 1080);
|
||||||
glEnable(GL_DEPTH_TEST);
|
glEnable(GL_DEPTH_TEST);
|
||||||
glClearColor(0.33f, 0.48f, 0.48f, 1.0f);
|
glClearColor(0.33f, 0.48f, 0.48f, 1.0f);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user