Created a testing skybox and got the reflection and refraction working.

This commit is contained in:
Zed A. Shaw 2026-09-04 15:17:42 -04:00
parent 4ee5058e82
commit 29f1606085
20 changed files with 56 additions and 28 deletions

View file

@ -31,7 +31,7 @@ void Scene::draw_thing(Shader& with_shader, Thing& thing)
with_shader.setMat4("model", model);
thing.model.draw(with_shader);
thing.model.draw(with_shader, false);
}
void Scene::render(GLFWwindow* window) {
@ -47,6 +47,7 @@ void Scene::render(GLFWwindow* window) {
shader.use();
shader.setMat4("view", view);
shader.setMat4("projection", projection);
shader.setVec3("cameraPos", camera.position);
for(auto& thing : things) {
draw_thing(shader, thing);