or the Story of a Rewrite.
The Single Light Lambert node in our free collection of plugins was never designed to replace surface shading in LightWave, but to allow the control of other nodes depending on the lighting by one (or more lights).
An simple example would be assigning two different images to a globe depending on wether it is lit by the sun or not.
Given the (much needed) changes to lighting and shading in LightWave 2018, we initially used a function marked as "legacy" to get the node to work.
Granted, it did work. But not when writing to a custom AOV - at least not in VPR - and it produced some odd results.
So we got a mail from Naoya Kurisu highlighting the issues and decided to have another look at the SDK for LW 2018. That didn't get very far but we got a lot of help from Antti Järvelä, the developer at the LW3DG mainly behind the new lighting and shading system, on how to use the new system.
The Single Light Lambert shader in version 2018.0.3 of the db&w Tools is the result of that work. Thanks must go to Naoya Kurisu for finding the issues and helping to test as well as Antti Järvelä for sending hundreds of lines of code and explanations. Thank you!