Skip to content

v2.7.0

Choose a tag to compare

@z3y z3y released this 09 Apr 12:30
· 10 commits to master since this release
  • New variant importer with graph settings overrides
    • With this it is now possible to generate shaders with different settings from one source graph (for example one with outlines pass and one without) for things that cant be toggled with shader features
    • Create a variant with Assets > Create > Graphlit > Variant,
    • Graph Path: either absolute or relative path without extensions to the source graph asset (unity doesnt allow direct asset references on scripted importers)
    • Name Suffix: a string thats added at the end of the source graph name, for example "Outline"
    • Options to override the outline pass and depth fill pass
  • Added more features to the default toon shader that should make extending it easier: alpha mask, rim light, matcap, and an outline variant with the new system
  • The outline toggle now also defines OUTLINE_PASS_ENABLED for all passes so any pass can know if the outline pass exists (useful for receiving shadows properly)
  • Switched lightmapped specular from a shader feature to a regular toggle in order to reduce variant counts
  • Folders with 0 properties are now skipped in the inspector
  • Renamed Bool to Toggle property
  • New Toggle properties now allow switching between a regular toggle and a keyword