Importing a new version from external source |
Importing a new version from external source |
||
Line 1: | Line 1: | ||
To render MSDFs in Resonite, one can use the [[Component:TextUnlitMaterial|TextUnlitMaterial]] or [[Component:UI_TextUnlitMaterial|UI_TextUnlitMaterial]] materials like any other | To render MSDFs in Resonite, one can use the [[Component:TextUnlitMaterial|TextUnlitMaterial]] or [[Component:UI_TextUnlitMaterial|UI_TextUnlitMaterial]] materials like any other material on a [[Component:MeshRenderer|MeshRenderer]]. The MSDF can be placed in the <code>FontAtlas</code> field of the material. <code>TintColor</code> is used to color the actual object the MSDF represents, while <code>BackgroundColor</code> can be used to color the background of the MSDF, so long as <code>AutoBackgroundColor</code> is unchecked. <code>OutlineColor</code> can be used to give an outline color to the object. <code>FaceDilate</code> dilates the boundary of the MSDF, <code>OutlineThickness</code> controls the thickness of the outline, and <code>FaceSoftness</code> controls how soft the object looks. |
Revision as of 15:40, 27 April 2025
To render MSDFs in Resonite, one can use the TextUnlitMaterial or UI_TextUnlitMaterial materials like any other material on a MeshRenderer. The MSDF can be placed in the FontAtlas
field of the material. TintColor
is used to color the actual object the MSDF represents, while BackgroundColor
can be used to color the background of the MSDF, so long as AutoBackgroundColor
is unchecked. OutlineColor
can be used to give an outline color to the object. FaceDilate
dilates the boundary of the MSDF, OutlineThickness
controls the thickness of the outline, and FaceSoftness
controls how soft the object looks.