summaryrefslogtreecommitdiff
path: root/model.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-03-02 17:30:17 +1100
committerquou <quou@disroot.org>2025-03-02 17:31:06 +1100
commit5b548cb866405b6716d5f904e4df75c07dbbad9b (patch)
treef08cddeb3f6ecb668dbac536d0ee2c533b0a55ee /model.cpp
parent528c5a7ef9e3e7cadf9a2caefa3ca115b382df75 (diff)
nevermind
Diffstat (limited to 'model.cpp')
-rw-r--r--model.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/model.cpp b/model.cpp
index aa65898..f24c0eb 100644
--- a/model.cpp
+++ b/model.cpp
@@ -386,9 +386,9 @@ void Model_Instance::render(
} else {
pb.depth(true, false, Depth_Mode::equal);
pb.shader(mesh.shader);
- pb.sbuffer(mesh.light_binding, lighting->gpu_lights.gpuonly);
- pb.sbuffer(mesh.casters_binding, lighting->gpu_casters.gpuonly);
- pb.texture(mesh.shadowmaps_binding, res.shadows, res.sampler);
+ pb.sbuffer(mesh.light_binding, lighting->lights.gpuonly);
+ pb.sbuffer(mesh.casters_binding, lighting->casters.gpuonly);
+ pb.texture(mesh.shadowmaps_binding, lighting->shadows, lighting->shadow_sampler);
mesh.material->use(pb, res.sampler, dev->get_shader(mesh.shader));
pb.cbuffer(
mesh.mat_binding,