]> git.mxchange.org Git - simgear.git/commitdiff
Pass whether light is directional to shader.
authorStuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
Tue, 21 Oct 2014 19:27:46 +0000 (20:27 +0100)
committerStuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
Tue, 21 Oct 2014 19:27:46 +0000 (20:27 +0100)
Patch from Thorsten RENK.

simgear/scene/tgdb/pt_lights.cxx

index 3bf9d5bc032344ba74dbff1cf2e5921b2d79a40c..bd4c979f366e4ec10f05ae1b434a78cb395f591a 100644 (file)
@@ -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);