May 10, 2021, 9:17pm
when i activate
pc.LayerComposition.clusteredLightingEnabled = true; the shader dosent compile anymore. looking at the error message:
ERROR: 0:271: '#' : invalid character
ERROR: 0:271: 'define' : syntax error
It looks like there is an Linebreak missing:
It sure does. Would you have any repro for this? Thanks!
May 11, 2021, 8:27am
deactivating the overwrite of shader chunks on my materials changes the error message. im editing
ERROR: 0:290: 'getLightDirPoint' : no matching overloaded function found
ERROR: 0:291: 'getFalloffLinear' : no matching overloaded function found
ERROR: 0:299: 'getLightDiffuse' : no matching overloaded function found
but i am unsure why the error message changed.
I wonder if perhaps your custom chunk is missed EOL at the end of it?
I’m trying to repro this with just normal lights and so far no issue. Would you have any small repro to test?
May 12, 2021, 7:23am
I can invite you to the project, if you want.
Could you please test out with the fix in the engine the way I described here:
Oh wow, it is definitely light related, 157 dynamic lights
The strong recommendation here is to use as few dynamic lights (unclustered) as possible, even as few as 8.
Even with clustered lighting, using as few as possible is recommended. 157 is far too many.
This should fix all errors you reported here.