Changing sand texture to a seamless sand texture.
This commit is contained in:
parent
5533d4e4ba
commit
9611c9ef08
BIN
Levels/Textures/seamlessTerrain.png
Normal file
BIN
Levels/Textures/seamlessTerrain.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 MiB |
2
level.cc
2
level.cc
@ -68,7 +68,7 @@ void Level::load(ACGL::OpenGL::SharedShaderProgram shader) {
|
||||
this->terrain.load();
|
||||
Model terrainModel = Model(this->terrain.getModel());
|
||||
// load a texture:
|
||||
Material terrainMaterial = Material("terrainTexture.png", 0.1f, 0.8f, 0.2f, 3.0f);
|
||||
Material terrainMaterial = Material("seamlessTerrain.png", 0.1f, 0.8f, 0.2f, 3.0f);
|
||||
//Create object
|
||||
Object terrainObject = Object(terrainModel, terrainMaterial,
|
||||
glm::vec3(-0.5f*(float)this->terrain.getHeightmapHeight(), 0.0f, -0.5f*(float)this->terrain.getHeightmapWidth()),
|
||||
|
Loading…
Reference in New Issue
Block a user