From 82eec0302b716eb724976d4a0ad230e9458bfcb8 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 4 Sep 2017 13:03:37 +0200 Subject: [PATCH] ShaderGenerator: fix point light shadow regression Fixes: #167 --- panda/src/display/graphicsStateGuardian.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/display/graphicsStateGuardian.cxx b/panda/src/display/graphicsStateGuardian.cxx index 0d337a803e..f0d807ffce 100644 --- a/panda/src/display/graphicsStateGuardian.cxx +++ b/panda/src/display/graphicsStateGuardian.cxx @@ -1455,8 +1455,8 @@ fetch_specified_part(Shader::ShaderMatInput part, InternalName *name, t.set_row(2, LVecBase4(d, cutoff)); } else if (node->is_of_type(PointLight::get_class_type())) { - t.set_cell(1, 3, lens->get_near()); - t.set_cell(3, 3, lens->get_far()); + t.set_cell(1, 3, lens->get_far()); + t.set_cell(3, 3, lens->get_near()); if (node->is_of_type(SphereLight::get_class_type())) { t.set_cell(2, 3, ((const SphereLight *)node)->get_radius());