Resized large textures to one third of their size.
This commit is contained in:
parent
5a92765518
commit
2638b43b44
BIN
Levels/Textures/blockTexture_small.png
Normal file
BIN
Levels/Textures/blockTexture_small.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 MiB |
BIN
Levels/Textures/columnTexture_small.png
Normal file
BIN
Levels/Textures/columnTexture_small.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 MiB |
BIN
Levels/Textures/marbleTexture_small.png
Normal file
BIN
Levels/Textures/marbleTexture_small.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 MiB |
6
level.cc
6
level.cc
@ -23,7 +23,7 @@ void Level::load(ACGL::OpenGL::SharedShaderProgram shader) {
|
|||||||
// load the geometry of the stanford bunny and build a VAO:
|
// load the geometry of the stanford bunny and build a VAO:
|
||||||
Model model = Model("MarbleSmooth.obj", 0.75f);
|
Model model = Model("MarbleSmooth.obj", 0.75f);
|
||||||
// load a texture:
|
// load a texture:
|
||||||
Material material = Material("marbleTexture.png", 0.1f, 0.5f, 0.5f, 3.0f);
|
Material material = Material("marbleTexture_small.png", 0.1f, 0.5f, 0.5f, 3.0f);
|
||||||
//Create object
|
//Create object
|
||||||
Object object = Object(model, material, glm::vec3(0.0f, 10.0f, 0.0f),
|
Object object = Object(model, material, glm::vec3(0.0f, 10.0f, 0.0f),
|
||||||
glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3(0.0f, 0.0f, 0.0f),
|
glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3(0.0f, 0.0f, 0.0f),
|
||||||
@ -43,14 +43,14 @@ void Level::load(ACGL::OpenGL::SharedShaderProgram shader) {
|
|||||||
objects.push_back(torchObject);
|
objects.push_back(torchObject);
|
||||||
|
|
||||||
Model blockModel = Model("Block.obj", 1.0f);
|
Model blockModel = Model("Block.obj", 1.0f);
|
||||||
Material blockMaterial = Material("blockTexture.png", 0.1f, 0.6, 0.4f, 2.0f);
|
Material blockMaterial = Material("blockTexture_small.png", 0.1f, 0.6, 0.4f, 2.0f);
|
||||||
Object blockObject = Object(blockModel, blockMaterial, glm::vec3(2.0f, 7.0f, 2.0f),
|
Object blockObject = Object(blockModel, blockMaterial, glm::vec3(2.0f, 7.0f, 2.0f),
|
||||||
glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3(0.0f, 0.0f, 0.0f),
|
glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3(0.0f, 0.0f, 0.0f),
|
||||||
shader);
|
shader);
|
||||||
objects.push_back(blockObject);
|
objects.push_back(blockObject);
|
||||||
|
|
||||||
Model columnModel = Model("Column.obj", 1.0f);
|
Model columnModel = Model("Column.obj", 1.0f);
|
||||||
Material columnMaterial = Material("columnTexture.png", 0.1f, 0.6, 0.4f, 2.0f);
|
Material columnMaterial = Material("columnTexture_small.png", 0.1f, 0.6, 0.4f, 2.0f);
|
||||||
Object columnObject = Object(columnModel, columnMaterial, glm::vec3(-2.0f, 7.0f, -2.0f),
|
Object columnObject = Object(columnModel, columnMaterial, glm::vec3(-2.0f, 7.0f, -2.0f),
|
||||||
glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3(0.0f, 0.0f, 0.0f),
|
glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3(0.0f, 0.0f, 0.0f), glm::vec3(0.0f, 0.0f, 0.0f),
|
||||||
shader);
|
shader);
|
||||||
|
Loading…
Reference in New Issue
Block a user