Skip to content

shadowed*rectangle: Don't use base class result if materials are different

Arjen Hiemstra requested to merge work/ahiemstra/rectanglebatch into master

When comparing two materials, if we have already concluded that the materials are different, don't return the result of the base class' compare as that result may actually indicate that the materials are the same, which will lead to the materials being batched when they shouldn't.

This fixes the issue from !989 (closed) without breaking batching for materials that are actually the same.

Edited by Arjen Hiemstra

Merge request reports

Loading