Pass whether light is directional to shader.

Patch from Thorsten RENK.
This commit is contained in:
Stuart Buchanan 2014-10-21 20:27:46 +01:00
parent 75271c44a8
commit 1480aa9bb8

View 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);