Pass whether light is directional to shader.
Patch from Thorsten RENK.
This commit is contained in:
parent
75271c44a8
commit
1480aa9bb8
@ -109,6 +109,7 @@ Effect* getLightEffect(float size, const Vec3& attenuation,
|
|||||||
params->getNode("min-size",true)->setValue(minSize);
|
params->getNode("min-size",true)->setValue(minSize);
|
||||||
params->getNode("max-size",true)->setValue(maxSize);
|
params->getNode("max-size",true)->setValue(maxSize);
|
||||||
params->getNode("cull-face",true)->setValue(directional ? "back" : "off");
|
params->getNode("cull-face",true)->setValue(directional ? "back" : "off");
|
||||||
|
params->getNode("directional",true)->setValue(directional);
|
||||||
|
|
||||||
effect = makeEffect(effectProp, true, options);
|
effect = makeEffect(effectProp, true, options);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user