Archive 17/01/2023.

Material Parameters and Batching

Enhex

Can material parameters be used without creating a new material, so it can be batched?

cadaver

Batching requires the same state (including material & geometry), so you would need to put all the needed parameters into a single material, and put some identifying information in the vertex data so that the shader knows what parameters to use.