Documentation

Page contents

Updated

Generate PDF from page.

SDF Mobile

Files: SDFMobile.shader

Path: "CGF/Shaders/TextMeshPro"

Shader menu: "CG Framework/Text Mesh Pro/SDF Mobile"

Description

Unity shader CG Framework/Text Mesh Pro/SDF Mobile.

Reference

  • Face Texture – Face Texture.
  • UV Rotation Center – UV Rotation Center.
  • UV Rotation Amount – UV Rotation Amount.
  • Face Color – Face Color.
  • Face Dilate – Face Dilate.
  • Outline Color – Outline Color.
  • Outline Type – Outline Type.
  • Outline Thickness – Outline Thickness.
  • Outline Softness – Outline Softness.
  • Border Color – Border Color.
  • Border OffsetX – Border OffsetX.
  • Border OffsetY – Border OffsetY.
  • Border Dilate – Border Dilate.
  • Border Softness – Border Softness.
  • Weight Normal – Weight Normal.
  • Weight Bold – Weight Bold.
  • Flags – Flags.
  • Scale RatioA – Scale RatioA.
  • Scale RatioB – Scale RatioB.
  • Scale RatioC – Scale RatioC.
  • Font Atlas – Font Atlas.
  • Texture Width – Texture Width.
  • Texture Height – Texture Height.
  • Gradient Scale – Gradient Scale.
  • Scale X – Scale X.
  • Scale Y – Scale Y.
  • Perspective Correction – Perspective Correction.
  • Sharpness – Sharpness.
  • Vertex OffsetX – Vertex OffsetX.
  • Vertex OffsetY – Vertex OffsetY.
  • Clip Rect – Clip Rect.
  • Mask SoftnessX – Mask SoftnessX.
  • Mask SoftnessY – Mask SoftnessY.
  • Stencil Comparison – Stencil Comparison.
  • Stencil ID – Stencil ID.
  • Stencil Operation – Stencil Operation.
  • Stencil Write Mask – Stencil Write Mask.
  • Stencil Read Mask – Stencil Read Mask.
  • Cull Mode – Cull Mode.
  • Color Mask – Color Mask.

Use

Assign the shader from CG Framework/Text Mesh Pro/SDF Mobile to a material.
Configure the grouped material properties listed in Reference from the Unity material inspector.