Pass pointer to nodedef directly ...

to avoid recalculation in quite often called light calculation functions