From: Stuart Buchanan Date: Tue, 21 Oct 2014 19:27:46 +0000 (+0100) Subject: Pass whether light is directional to shader. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1480aa9bb8e4103f47896f97a176d5f559c64856;p=simgear.git Pass whether light is directional to shader. Patch from Thorsten RENK. --- diff --git a/simgear/scene/tgdb/pt_lights.cxx b/simgear/scene/tgdb/pt_lights.cxx index 3bf9d5bc..bd4c979f 100644 --- a/simgear/scene/tgdb/pt_lights.cxx +++ b/simgear/scene/tgdb/pt_lights.cxx @@ -109,6 +109,7 @@ Effect* getLightEffect(float size, const Vec3& attenuation, params->getNode("min-size",true)->setValue(minSize); params->getNode("max-size",true)->setValue(maxSize); params->getNode("cull-face",true)->setValue(directional ? "back" : "off"); + params->getNode("directional",true)->setValue(directional); effect = makeEffect(effectProp, true, options);