Created a testing skybox and got the reflection and refraction working.
This commit is contained in:
parent
4ee5058e82
commit
29f1606085
20 changed files with 56 additions and 28 deletions
|
|
@ -83,9 +83,9 @@ unsigned int texture_from_file(const std::string& directory, const std::string&
|
|||
return textureID;
|
||||
}
|
||||
|
||||
void Model::draw(Shader &shader) {
|
||||
void Model::draw(Shader &shader, bool with_textures) {
|
||||
for(auto& mesh : meshes) {
|
||||
mesh.draw(shader);
|
||||
mesh.draw(shader, with_textures);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue