orels1 / orels-Unity-Shaders

A collection of practical Unity shaders for your next project
https://shaders.orels.sh
Other
178 stars 15 forks source link

[ORL-72] Add support for de-duplicating tags #72

Open orels1 opened 4 months ago

orels1 commented 4 months ago

Currently it is possible to define duplicate tags, e.g.

Tags {
  "RenderType" = "Opaque" "RenderType" = "Transparent"
}

While this doesn't cause issues for regular rendering - unity picks the last instance of the tag, it can cause issues with shader replacement and bakery, so duplicate tags should deduplicated and only the last instance should be set in the template

De-duplication should be done using the ShaderParser

From SyncLinear.com | ORL-72

orels1 commented 4 months ago

This is included in the upcoming 6.4.0 release