Triplanar Node Material Area Lights Issue?

Hi,
I’m trying to implement area lights to my project, but it seems there is an issue when it comes to using area lights with node materials, at least in my case.
I have created this triplanar node material based on a number of examples available. It was working fine with all other types of lights, but not with area lights.
I get a “Unable to compile effect:” , “Error: FRAGMENT SHADER ERROR: 0:873: ‘areaLightsLTC1Sampler’ : undeclared identifier” type of error in a really long error output.
Here’s the playground: https://playground.babylonjs.com/#T7FXR8#40

Are node materials + area lights supported? Is there something wrong with the shader?
Thanks!

cc @srzerbetto

I’m taking a look. We are probably assuming the inclusion of a sampler block that is not been included by this node material for some reason.

We just merged a PR for fixing this. Should be available in the next version of Babylon.js

PR: Fixes Area Lights for NME by SergioRZMasson · Pull Request #16577 · BabylonJS/Babylon.js

4 Likes

Nice! Thank you!