finished game-engine-terrain-generation #2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user