From 5f779ea3d5daa171c65967aaca9a7a52d45c8cf9 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Tue, 2 Jun 2015 20:15:48 +0200 Subject: [PATCH] Fixing moving shadows of flames once again. --- data/shader/phong.fsh | 2 +- game/graphics.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/shader/phong.fsh b/data/shader/phong.fsh index ee2a029..e9edd68 100644 --- a/data/shader/phong.fsh +++ b/data/shader/phong.fsh @@ -272,7 +272,7 @@ void main() for(int i = 0; i(renderQueue.at(i_pointlight))->isFlame()) { position = std::get<0>(renderQueue.at(i_pointlight))->getPosition(); - position = glm::vec3(position.x + 0.75f*wind.x, position.y, position.z + 0.75f*wind.y); + position = glm::vec3(position.x - 0.75f*wind.y, position.y, position.z + 0.75f*wind.x); } else { position = std::get<0>(renderQueue.at(i_pointlight))->getPosition();