unity 3D字体

1.创建字体------3D Object -3D Text

unity 3D字体

2.赋予材质

unity 3D字体

3.字体shader------3D Text Shader

Shader "Custom/3D Text Shader" {
    Properties{
        _MainTex("Font Texture", 2D) = "white" {}
    _Color("Text Color", Color) = (1,1,1,1)
    }


        SubShader{
        Tags{ "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" }
        Lighting Off Cull Off ZWrite On Fog{ Mode Off }
        Blend SrcAlpha OneMinusSrcAlpha
        Pass{
        Color[_Color]
        SetTexture[_MainTex]{
        combine primary, texture * primary
    }
    }
    }
}

4.字体图片--选择字体里面的图片Font material

unity 3D字体

 

相关文章:

  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2021-04-01
  • 2023-03-24
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
相关资源
相似解决方案