Remove usement of unused entity dragon (remaining from tut)

This commit is contained in:
Sebastian 2023-10-04 08:55:13 +02:00
parent 466a15f160
commit d11e58c998

View File

@ -122,10 +122,6 @@ public class Engine {
Light light = new Light(new Vector3f(0,0,-20), new Vector3f(1,1,1)); Light light = new Light(new Vector3f(0,0,-20), new Vector3f(1,1,1));
RawModel model = OBJLoader.loadOBJModel("dragon", loader);
ModelTexture modelTexture = new ModelTexture(loader.loadTexture("white"));
TexturedModel texturedModel = new TexturedModel(model, modelTexture);
Entity entity = new Entity(texturedModel, new Vector3f(0,0,-50), 0,0,0,1);
//Generate Simple, Flat Terrain //Generate Simple, Flat Terrain
Terrain terrain = new Terrain( loader, new ModelTexture(loader.loadTexture("grass"))); Terrain terrain = new Terrain( loader, new ModelTexture(loader.loadTexture("grass")));
@ -143,9 +139,6 @@ public class Engine {
input(camera, renderer); input(camera, renderer);
while ( !glfwWindowShouldClose(window) ) { while ( !glfwWindowShouldClose(window) ) {
renderer.processEntity(hexagonEntity); renderer.processEntity(hexagonEntity);
//entity.increaseRotation(0,1,0);
//renderer.processTerrain(terrain);
//renderer.processEntity(entity);
renderer.render(light, camera); renderer.render(light, camera);
glfwSwapBuffers(window); // swap the color buffers glfwSwapBuffers(window); // swap the color buffers
// Poll for window events. The key callback above will only be // Poll for window events. The key callback above will only be