finished game-engine-terrain-generation #2

Merged
sebastian merged 9 commits from game-engine-terrain-generation into game-engine 2023-10-05 14:00:29 +02:00
Showing only changes of commit d11e58c998 - Show all commits

View File

@ -122,10 +122,6 @@ public class Engine {
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
Terrain terrain = new Terrain( loader, new ModelTexture(loader.loadTexture("grass")));
@ -143,9 +139,6 @@ public class Engine {
input(camera, renderer);
while ( !glfwWindowShouldClose(window) ) {
renderer.processEntity(hexagonEntity);
//entity.increaseRotation(0,1,0);
//renderer.processTerrain(terrain);
//renderer.processEntity(entity);
renderer.render(light, camera);
glfwSwapBuffers(window); // swap the color buffers
// Poll for window events. The key callback above will only be