Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SimpleShader.use();
- for (int i = 0; i < 2; i++) {
- switch (i) {
- case 0:
- for (unsigned int i = 0; i < 6; ++i) {
- SimpleShader.setMat4("shadowMatrices[" + std::to_string(i) + "]", shadowTransforms[i]);
- }
- SimpleShader.setVec3("lightPos", glm::vec3(pointlight[0].position));
- SimpleShader.setInt("index", 0);
- break;
- case 1:
- for (unsigned int i = 0; i < 6; ++i) {
- SimpleShader.setMat4("shadowMatrices[" + std::to_string(i) + "]", shadowTransforms2[i]);
- }
- SimpleShader.setVec3("lightPos", glm::vec3(pointlight[1].position));
- SimpleShader.setInt("index", 1);
- break;
- }
- model.Draw();
- }
Advertisement
Add Comment
Please, Sign In to add comment