Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Additive Font Blending?

Discussion in 'UGUI & TextMesh Pro' started by DanTaylor, Aug 29, 2018.

  1. DanTaylor

    DanTaylor

    Joined:
    Jul 6, 2013
    Posts:
    119
    Hi there!
    Is there a way to make a font blend in additive mode?
    Presumably you can write a shader and apply a specific material with the new blend mode., but I can't find any info on how to write UI Text shaders. Any ideas?
    :(
    Dan
     
  2. Hosnkobf

    Hosnkobf

    Joined:
    Aug 23, 2016
    Posts:
    1,096
    Hi,
    you do not need a special shader for this. You can simply create a material which uses the default shader for text rendering.
    in that material you can change the "SrcBlendMode" to 4 and the "DstBlendMode" to 1. This should do the trick (Not sure if you also need to enable "Use Alpha Clip" and "Combine Alpha"... just try yourself).