Basic shadows (not working very well yet)

This commit is contained in:
4VRDriver
2020-09-24 14:36:57 +02:00
parent bbd186bca9
commit dd44888a4d
19 changed files with 157 additions and 61 deletions

View File

@@ -28,6 +28,15 @@ void Model::draw(ShaderProgram *shaderProgram) {
}
void Model::drawWithoutTextures() {
// Iterate through every mesh and call the draw function
for(auto it = meshes.begin(); it != meshes.end(); it++) {
(*it)->drawWithoutTextures();
}
}
void Model::loadModel(std::string pathToModel) {
std::ifstream input(pathToModel, std::ios::in | std::ios::binary);