From c6f6260df4313b3bd24072b88f7a9ed1c6eb669a Mon Sep 17 00:00:00 2001 From: Kearwood Gilbert Date: Tue, 25 Mar 2014 21:44:49 -0700 Subject: [PATCH] Reversed commit that caused point lights to be broken in the deferred rendering path. --HG-- branch : nfb --- KREngine/kraken/KRPointLight.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/KREngine/kraken/KRPointLight.cpp b/KREngine/kraken/KRPointLight.cpp index f998ae6..8ce2f07 100644 --- a/KREngine/kraken/KRPointLight.cpp +++ b/KREngine/kraken/KRPointLight.cpp @@ -57,10 +57,10 @@ void KRPointLight::render(KRCamera *pCamera, std::vector &point_ KRVector3 light_position = getLocalTranslation(); float influence_radius = m_decayStart - sqrt(m_intensity * 0.01f) / sqrt(KRLIGHT_MIN_INFLUENCE); - + KRMat4 sphereModelMatrix = KRMat4(); - sphereModelMatrix.translate(light_position.x, light_position.y, light_position.z); sphereModelMatrix.scale(influence_radius); + sphereModelMatrix.translate(light_position.x, light_position.y, light_position.z); if(viewport.visible(getBounds())) { // Cull out any lights not within the view frustrum