Author Topic: TMPro surface shaders  (Read 2938 times)

Stephan S.

  • Global Moderator
  • Jr. Member
  • *****
  • Posts: 63
TMPro surface shaders
« on: May 29, 2014, 08:49:43 PM »
[ Guests cannot view attachments ] A lot of focus was given to the non surface shaders, so here is a post to highlight some of the benefits of using the surface shaders in a scene.
(all the screen shot and feature are done using Unity free)

TMPro surface shader provide Unity lighting system all it needs to perform lighting & shading. Including shadows & reflections.

Here is a mock-up selection screen, this is as far as my art skill will go :)

The scene was easy to setup. A camera + directional light with plane and 3 instances of the Unity soldier each with a TMPro object (using the surface shader) + point lights

Here is the scene with the light disabled
[ Guests cannot view attachments ]

Now with the Glow enabled and point light enabled on the second soldier.
(Because all text is dynamic and real-time, any names can be displayed)
[ Guests cannot view attachments ]

Lets turn on all the lights and add two TMPro object for a 2D title.
(Surface shaders cast scene shadow, while non surface shader use a built in lighting system for shading control)
[ Guests cannot view attachments ]

Since all the lighting and effects are dynamic its possible to implement highlight section for custom text.
[ Guests cannot view attachments ]

All scene light off. We can see that the title text attached to the camera stays and is no affected by the scene lighting.
[ Guests cannot view attachments ]

And a little tease, real-time FX on TMPro text...
[ Guests cannot view attachments ]

This is was done within Unity free, no third party tool used
[ Guests cannot view attachments ] .

« Last Edit: May 30, 2014, 03:11:02 AM by Stephan S. »