Plans For Hdrp Compatibility For Tmp?

I was just trying out the 2019.1 beta, hoping maybe there was a new TMP package to start integrating with HDRP features, but unfortunately I don’t see anything that isn’t in 2018.3. Are there plans to improve the functionality of TMP to accommodate the various features that HDRP supports? For example, currently it appears there is no support for the refraction pass. TMP text in front of or behind some refractive glass will either fully hide or show, not exhibit any refraction blur.

Any news on this?

Support for HDRP should be available within the next 30 to 60 days for Unity 2019.3. Support for editable custom shaders via Shader Graph with added functionality like ability to have multiple outlines, shadows, etc. is also coming but for that we are waiting on features from the shader graph team.

Any update on this ? :slight_smile: Really looking forward to TMP Shader Graph!

Had a discussions with the Graphics team yesterday. Will provide an update mid / late next week.

1 Like

Any news? :slight_smile:

What was the outcome of this?

I just need to find the time to create the custom editor for the new shader graph shaders.

I will try to provide an update later this week. (for real).

4 Likes

Also waiting on HDRP shaders for TextMeshPro. Will that work with VR also ?

I also have to stress that I’m sailing in uncharted waters with reprehensible Unity UI Text-elements all over my otherwise very pretty game, waiting patiently to be able to use TMP for my HDRP project. It’s so odd, that the default text-component looks so bad. I don’t get it. I have to scale them down and make the font size larger to get any sort of quality, but then the text gets weirdly jaggy and Unity’s Layout Groups don’t understand child-scale properly, so it becomes a huge mess. Somehow, TMP just pwns it in every aspect!

For real? :frowning:

Quick update:

  • The Shader Graph shader(s) are mostly working but still need some tweaking and full testing.
  • The core functionality needed to use custom inspector(s) is now available in the latest ShaderGraph package.
  • HDRP related options like “Surface Options” and keyword management is still not exposed.

Without a custom material inspector those material inspectors are pretty scary / non intuitive as seen in the image below

6268083--691989--upload_2020-9-1_15-18-28.png

4 Likes

The main issue I’m having with TMP in HDRP has been that I can’t get it to render “After post-process”, like I can with other materials:

6268185--692013--upload_2020-9-1_20-4-49.png

Having the text of the HUD affected by motion blur is a pretty bad experience. When you say the Surface Options aren’t exposed yet, does that leave me some way to set the Rendering Pass?

1 Like

Do you have a simple scene setup that you could share for testing the above?

Sure. I’ve attached a basic repro project showing the issue, hopefully clearly. Made in Unity 2019.4.8. (The Library folder is obviously not included, so it’ll take a few minutes to open it.)

In that project, open SampleScene, and run it. You’ll see something like this:

If you hold RMB and move the mouse, it should rotate the camera. Most of the stuff on the screen should show heavy motion blur, provided by the post-processing in the scene. The middle text at the top is in a screen-space canvas, and isn’t affected by post processing, so it should look fine as you move the mouse. All of the other text, however, will blur.

Now look at the two blur circles. They’re both in the world-space canvas. The upper one has no material on it, and you’ll see it blurs as you move the camera. The lower circle, however, has a material set to “After post-process” for its render pass. Because of this, it isn’t affected by motion blur.

My HUD is a physical object, made of a world-space canvas, so currently I’m getting bad motion blur on the TMP text in the HUD. I was just hoping for some way to set the render pass on the TMP to After PostProcess, so it would behave like the bottom blue circle.

Edit: And just to be very clear: What I’m trying to do is to get TMP objects in world-space canvases not to be affected by post-processing, just like that lower blue circle’s shader renders after the post-processing pass.

6268797–692109–TextMeshProAfterPostProcessTest.zip (1.55 MB)

1 Like

That’s looking very nice, thanks on the update! So we are getting this shader template plus the material custom inspector sometime in the 2019.4 LTS lifespan? (Asking since I can’t find anything in the Shader Graph changelog for that version nor the 10.0)

The plan is to release these new Shader Graph shaders in 2019.4 LTS as soon as possible.

1 Like

I am hoping to see Text Shader Graph appear in this list at some point, is that the plan?
6342135--704637--upload_2020-9-23_16-48-38.png

Still as of now, even in 2020.2, there’s not easy way to customize the text shader :frowning:

I am considering having the new shaders in the following location:

“TextMeshPro/URP/Name of Shader”
“TextMeshPro/HDRP/Name of Shader”

Right now I do have some ShaderGraph URP / HDRP SDF text shaders working.

I do not have custom inspectors for those yet. Without custom inspectors, those are pretty scary and do not have sanity checks against invalid values resulting in incorrect rendering.

I am considering perhaps releasing those shaders without custom inspector but not sure. Thoughts?

@Stephan_B I don’t think the image you posted is scary especially given how complex are some HDRP shaders.

At the moment there is no opaque/surface shader for text rendering, so any basic graph would definitely help.

Thanks for the quick reply, by the way :slight_smile: