ClusteredLights Shader crash

Hi,

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!

deactivating the overwrite of shader chunks on my materials changes the error message. im editing basePS and endPS.

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?

I believe I have a fix.

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:

This should fix all errors you reported here.

1 Like

Yep, it does. Thank you :slight_smile:

1 Like