mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-29 00:27:59 +01:00
41 lines
No EOL
1.1 KiB
Text
41 lines
No EOL
1.1 KiB
Text
Shader "TextMeshPro/Bitmap" {
|
|
Properties {
|
|
_MainTex ("Font Atlas", 2D) = "white" {}
|
|
_FaceTex ("Font Texture", 2D) = "white" {}
|
|
_FaceColor ("Text Color", Vector) = (1,1,1,1)
|
|
_VertexOffsetX ("Vertex OffsetX", Float) = 0
|
|
_VertexOffsetY ("Vertex OffsetY", Float) = 0
|
|
_MaskSoftnessX ("Mask SoftnessX", Float) = 0
|
|
_MaskSoftnessY ("Mask SoftnessY", Float) = 0
|
|
_ClipRect ("Clip Rect", Vector) = (-10000,-10000,10000,10000)
|
|
_StencilComp ("Stencil Comparison", Float) = 8
|
|
_Stencil ("Stencil ID", Float) = 0
|
|
_StencilOp ("Stencil Operation", Float) = 0
|
|
_StencilWriteMask ("Stencil Write Mask", Float) = 255
|
|
_StencilReadMask ("Stencil Read Mask", Float) = 255
|
|
_ColorMask ("Color Mask", Float) = 15
|
|
}
|
|
//DummyShaderTextExporter
|
|
SubShader{
|
|
Tags { "RenderType"="Opaque" }
|
|
LOD 200
|
|
CGPROGRAM
|
|
#pragma surface surf Standard
|
|
#pragma target 3.0
|
|
|
|
sampler2D _MainTex;
|
|
struct Input
|
|
{
|
|
float2 uv_MainTex;
|
|
};
|
|
|
|
void surf(Input IN, inout SurfaceOutputStandard o)
|
|
{
|
|
fixed4 c = tex2D(_MainTex, IN.uv_MainTex);
|
|
o.Albedo = c.rgb;
|
|
o.Alpha = c.a;
|
|
}
|
|
ENDCG
|
|
}
|
|
//CustomEditor "TMPro.EditorUtilities.TMP_BitmapShaderGUI"
|
|
} |