Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Koyemsi · Dec 23, 2019 at 12:38 PM · shaderstextmesh

Additive shader for TextMeshPro ?

Hi,

I’ve been designing a starship HUD interface for my mobile game.

All of its graphical elements are using a Material based on Mobile/Particles/Additive shader, to get that translucent, holographic touch.

I would like to use the same kind of shader for my TMP UGUIs, but couldn’t find one in TMP’s provided shaders.

I assume the solution would be to write my own shader but I don’t have any knowledge about shaders yet. Some help would be much appreciated.

Have a nice day.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by xibanya · Dec 24, 2019 at 02:05 AM

Make a copy of TMP_SDF-Mobile Overlay.shader (if you can't find it, paste the source into a new shader.) change the first line to Shader "TextMeshPro/Mobile/Distance Field Overlay Additive" Change line 77 to Blend One One, which is the additive blendmode.

alt text

Then assign the shader to your text's material and you're set! Here pictured: top line is using the default TMP shader, bottom text using this shader, both have the same properties otherwise.

alt text


screenhunter-4652.png (3.6 kB)
screenhunter-4653.png (398.9 kB)
Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Koyemsi · Dec 24, 2019 at 01:36 PM 1
Share

Hi @xibanya, thanx for your quick and efficient reply. Oh my, it seems so simple (when you know how to) ! Thank you SO $$anonymous$$UCH ! Your nice, clear and well documented solution just saved my day !

By the way, a little tip for those who would encounter the same problem as I did : at first, I couldn’t find my custom shader in T$$anonymous$$P’s shaders list. That was only because I didn’t name the file properly. I had named it something like T$$anonymous$$P_additive.shader. Rena$$anonymous$$g it the proper way (T$$anonymous$$P_SDF-$$anonymous$$obile Overlay Additive.shader) solved the issue.

$$anonymous$$erry $$anonymous$$ !

avatar image
0

Answer by $$anonymous$$ · Dec 24, 2019 at 03:34 PM

Thanks. Can Textmesh pro be commercially available for game and application? So it's free?

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Koyemsi · Dec 24, 2019 at 04:02 PM 0
Share

I think it is, as it is now included to Unity.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

128 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

TextMesh Pro Shader errors on build for Nintendo DS 1 Answer

Shader on TMP works perfectly in editor, but not in build. 0 Answers

Strok/Outline around TextMesh using Shader? 0 Answers

Why does shader show chars as rectangles? 2 Answers

How to update TMP Pro Sprite Shader using script/C#? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges