Guest User

Untitled

a guest
Jun 14th, 2025
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. SimpleShader.use();
  2. for (int i = 0; i < 2; i++) {
  3. switch (i) {
  4. case 0:
  5. for (unsigned int i = 0; i < 6; ++i) {
  6. SimpleShader.setMat4("shadowMatrices[" + std::to_string(i) + "]", shadowTransforms[i]);
  7. }
  8. SimpleShader.setVec3("lightPos", glm::vec3(pointlight[0].position));
  9. SimpleShader.setInt("index", 0);
  10. break;
  11. case 1:
  12. for (unsigned int i = 0; i < 6; ++i) {
  13. SimpleShader.setMat4("shadowMatrices[" + std::to_string(i) + "]", shadowTransforms2[i]);
  14. }
  15. SimpleShader.setVec3("lightPos", glm::vec3(pointlight[1].position));
  16. SimpleShader.setInt("index", 1);
  17. break;
  18. }
  19. model.Draw();
  20. }
Advertisement
Add Comment
Please, Sign In to add comment