Workaround for lightprobes breaking batches

Our project relies on lightprobes for many smaller static objects but they easily break batching because it can refer to a different light probe. Is anyone familiar with any workaround or fix against this issue?

Using a proxy volume wouldn’t be performant for this case as it is a big area that needs to be covered.

Apparently there was an issue with our shader and this improved batching significantly. I can’t however delete this thread.

1 Like

What was the issue with your shader?

For those who stumble upon this thread. There was another thread which contained further discussion.

In summary, SashaSK8 noted that you should include these inside of your shader for instancing to be supported by Light probes.

#pragma multi_compile _ LIGHTPROBE_SH
#pragma multi_compile_instancing

This may be the solution that Zylex used, as they also participated in the other thread.