app.hypergames.hypersdk 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/check-sync.yml +0 -2
- package/CHANGELOG.md +9 -0
- package/dev-hypersdk/Assets/Editor/HyperSDKSyncTool.cs +0 -1
- package/package.json +1 -1
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/DOTweenSettings.asset +0 -54
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Fonts/LiberationSans - OFL.txt +0 -46
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Fonts/LiberationSans.ttf +0 -0
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Drop Shadow.mat +0 -106
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Fallback.asset +0 -348
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Outline.mat +0 -104
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF.asset +0 -7821
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Resources/LineBreaking Following Characters.txt +0 -1
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Resources/LineBreaking Leading Characters.txt +0 -1
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Resources/Sprite Assets/EmojiOne.asset +0 -659
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Resources/Style Sheets/Default Style Sheet.asset +0 -81
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Resources/TMP Settings.asset +0 -52
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/SDFFunctions.hlsl +0 -178
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMP_Bitmap-Custom-Atlas.shader +0 -145
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMP_Bitmap-Mobile.shader +0 -155
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMP_Bitmap.shader +0 -145
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMP_SDF Overlay.shader +0 -326
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMP_SDF SSD.shader +0 -321
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMP_SDF-HDRP LIT.shadergraph +0 -12074
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMP_SDF-HDRP UNLIT.shadergraph +0 -11759
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMP_SDF-Mobile Masking.shader +0 -258
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMP_SDF-Mobile Overlay.shader +0 -252
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMP_SDF-Mobile SSD.shader +0 -106
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMP_SDF-Mobile-2-Pass.shader +0 -389
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMP_SDF-Mobile.shader +0 -250
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMP_SDF-Surface-Mobile.shader +0 -139
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMP_SDF-Surface.shader +0 -159
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMP_SDF-URP Lit.shadergraph +0 -11932
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMP_SDF-URP Unlit.shadergraph +0 -11629
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMP_SDF.shader +0 -326
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMP_Sprite.shader +0 -131
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMPro.cginc +0 -84
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMPro_Mobile.cginc +0 -165
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMPro_Properties.cginc +0 -80
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMPro_Surface.cginc +0 -99
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Sprites/EmojiOne Attribution.txt +0 -3
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Sprites/EmojiOne.json +0 -156
- package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Sprites/EmojiOne.png +0 -0
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
// Simplified version of the SDF Surface shader :
|
|
2
|
-
// - No support for Bevel, Bump or envmap
|
|
3
|
-
// - Diffuse only lighting
|
|
4
|
-
// - Fully supports only 1 directional light. Other lights can affect it, but it will be per-vertex/SH.
|
|
5
|
-
|
|
6
|
-
Shader "TextMeshPro/Mobile/Distance Field (Surface)" {
|
|
7
|
-
|
|
8
|
-
Properties {
|
|
9
|
-
_FaceTex ("Fill Texture", 2D) = "white" {}
|
|
10
|
-
_FaceColor ("Fill Color", Color) = (1,1,1,1)
|
|
11
|
-
_FaceDilate ("Face Dilate", Range(-1,1)) = 0
|
|
12
|
-
|
|
13
|
-
_OutlineColor ("Outline Color", Color) = (0,0,0,1)
|
|
14
|
-
_OutlineTex ("Outline Texture", 2D) = "white" {}
|
|
15
|
-
_OutlineWidth ("Outline Thickness", Range(0, 1)) = 0
|
|
16
|
-
_OutlineSoftness ("Outline Softness", Range(0,1)) = 0
|
|
17
|
-
|
|
18
|
-
_GlowColor ("Color", Color) = (0, 1, 0, 0.5)
|
|
19
|
-
_GlowOffset ("Offset", Range(-1,1)) = 0
|
|
20
|
-
_GlowInner ("Inner", Range(0,1)) = 0.05
|
|
21
|
-
_GlowOuter ("Outer", Range(0,1)) = 0.05
|
|
22
|
-
_GlowPower ("Falloff", Range(1, 0)) = 0.75
|
|
23
|
-
|
|
24
|
-
_WeightNormal ("Weight Normal", float) = 0
|
|
25
|
-
_WeightBold ("Weight Bold", float) = 0.5
|
|
26
|
-
|
|
27
|
-
// Should not be directly exposed to the user
|
|
28
|
-
_ShaderFlags ("Flags", float) = 0
|
|
29
|
-
_ScaleRatioA ("Scale RatioA", float) = 1
|
|
30
|
-
_ScaleRatioB ("Scale RatioB", float) = 1
|
|
31
|
-
_ScaleRatioC ("Scale RatioC", float) = 1
|
|
32
|
-
|
|
33
|
-
_MainTex ("Font Atlas", 2D) = "white" {}
|
|
34
|
-
_TextureWidth ("Texture Width", float) = 512
|
|
35
|
-
_TextureHeight ("Texture Height", float) = 512
|
|
36
|
-
_GradientScale ("Gradient Scale", float) = 5.0
|
|
37
|
-
_ScaleX ("Scale X", float) = 1.0
|
|
38
|
-
_ScaleY ("Scale Y", float) = 1.0
|
|
39
|
-
_PerspectiveFilter ("Perspective Correction", Range(0, 1)) = 0.875
|
|
40
|
-
_Sharpness ("Sharpness", Range(-1,1)) = 0
|
|
41
|
-
|
|
42
|
-
_VertexOffsetX ("Vertex OffsetX", float) = 0
|
|
43
|
-
_VertexOffsetY ("Vertex OffsetY", float) = 0
|
|
44
|
-
|
|
45
|
-
_CullMode ("Cull Mode", Float) = 0
|
|
46
|
-
//_MaskCoord ("Mask Coords", vector) = (0,0,0,0)
|
|
47
|
-
//_MaskSoftness ("Mask Softness", float) = 0
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
SubShader {
|
|
51
|
-
|
|
52
|
-
Tags {
|
|
53
|
-
"Queue"="Transparent"
|
|
54
|
-
"IgnoreProjector"="True"
|
|
55
|
-
"RenderType"="Transparent"
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
LOD 300
|
|
59
|
-
Cull [_CullMode]
|
|
60
|
-
|
|
61
|
-
CGPROGRAM
|
|
62
|
-
#pragma surface PixShader Lambert alpha:blend vertex:VertShader noforwardadd nolightmap nodirlightmap
|
|
63
|
-
#pragma target 3.0
|
|
64
|
-
#pragma shader_feature __ GLOW_ON
|
|
65
|
-
|
|
66
|
-
#include "TMPro_Properties.cginc"
|
|
67
|
-
#include "TMPro.cginc"
|
|
68
|
-
|
|
69
|
-
half _FaceShininess;
|
|
70
|
-
half _OutlineShininess;
|
|
71
|
-
|
|
72
|
-
struct Input
|
|
73
|
-
{
|
|
74
|
-
fixed4 color : COLOR;
|
|
75
|
-
float2 uv_MainTex;
|
|
76
|
-
float2 uv2_FaceTex;
|
|
77
|
-
float2 uv2_OutlineTex;
|
|
78
|
-
float2 param; // Weight, Scale
|
|
79
|
-
float3 viewDirEnv;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
#include "TMPro_Surface.cginc"
|
|
83
|
-
|
|
84
|
-
ENDCG
|
|
85
|
-
|
|
86
|
-
// Pass to render object as a shadow caster
|
|
87
|
-
Pass
|
|
88
|
-
{
|
|
89
|
-
Name "Caster"
|
|
90
|
-
Tags { "LightMode" = "ShadowCaster" }
|
|
91
|
-
Offset 1, 1
|
|
92
|
-
|
|
93
|
-
Fog {Mode Off}
|
|
94
|
-
ZWrite On ZTest LEqual Cull Off
|
|
95
|
-
|
|
96
|
-
CGPROGRAM
|
|
97
|
-
#pragma vertex vert
|
|
98
|
-
#pragma fragment frag
|
|
99
|
-
#pragma multi_compile_shadowcaster
|
|
100
|
-
#include "UnityCG.cginc"
|
|
101
|
-
|
|
102
|
-
struct v2f
|
|
103
|
-
{
|
|
104
|
-
V2F_SHADOW_CASTER;
|
|
105
|
-
float2 uv : TEXCOORD1;
|
|
106
|
-
float2 uv2 : TEXCOORD3;
|
|
107
|
-
float alphaClip : TEXCOORD2;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
uniform float4 _MainTex_ST;
|
|
111
|
-
uniform float4 _OutlineTex_ST;
|
|
112
|
-
float _OutlineWidth;
|
|
113
|
-
float _FaceDilate;
|
|
114
|
-
float _ScaleRatioA;
|
|
115
|
-
|
|
116
|
-
v2f vert( appdata_base v )
|
|
117
|
-
{
|
|
118
|
-
v2f o;
|
|
119
|
-
TRANSFER_SHADOW_CASTER(o)
|
|
120
|
-
o.uv = TRANSFORM_TEX(v.texcoord, _MainTex);
|
|
121
|
-
o.uv2 = TRANSFORM_TEX(v.texcoord, _OutlineTex);
|
|
122
|
-
o.alphaClip = o.alphaClip = (1.0 - _OutlineWidth * _ScaleRatioA - _FaceDilate * _ScaleRatioA) / 2;
|
|
123
|
-
return o;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
uniform sampler2D _MainTex;
|
|
127
|
-
|
|
128
|
-
float4 frag(v2f i) : COLOR
|
|
129
|
-
{
|
|
130
|
-
fixed4 texcol = tex2D(_MainTex, i.uv).a;
|
|
131
|
-
clip(texcol.a - i.alphaClip);
|
|
132
|
-
SHADOW_CASTER_FRAGMENT(i)
|
|
133
|
-
}
|
|
134
|
-
ENDCG
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
CustomEditor "TMPro.EditorUtilities.TMP_SDFShaderGUI"
|
|
139
|
-
}
|
package/upm-hypersdk/app.hypergames.hypersdk/Resources/TextMesh Pro/Shaders/TMP_SDF-Surface.shader
DELETED
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
Shader "TextMeshPro/Distance Field (Surface)" {
|
|
2
|
-
|
|
3
|
-
Properties {
|
|
4
|
-
_FaceTex ("Fill Texture", 2D) = "white" {}
|
|
5
|
-
_FaceUVSpeedX ("Face UV Speed X", Range(-5, 5)) = 0.0
|
|
6
|
-
_FaceUVSpeedY ("Face UV Speed Y", Range(-5, 5)) = 0.0
|
|
7
|
-
_FaceColor ("Fill Color", Color) = (1,1,1,1)
|
|
8
|
-
_FaceDilate ("Face Dilate", Range(-1,1)) = 0
|
|
9
|
-
|
|
10
|
-
_OutlineColor ("Outline Color", Color) = (0,0,0,1)
|
|
11
|
-
_OutlineTex ("Outline Texture", 2D) = "white" {}
|
|
12
|
-
_OutlineUVSpeedX ("Outline UV Speed X", Range(-5, 5)) = 0.0
|
|
13
|
-
_OutlineUVSpeedY ("Outline UV Speed Y", Range(-5, 5)) = 0.0
|
|
14
|
-
_OutlineWidth ("Outline Thickness", Range(0, 1)) = 0
|
|
15
|
-
_OutlineSoftness ("Outline Softness", Range(0,1)) = 0
|
|
16
|
-
|
|
17
|
-
_Bevel ("Bevel", Range(0,1)) = 0.5
|
|
18
|
-
_BevelOffset ("Bevel Offset", Range(-0.5,0.5)) = 0
|
|
19
|
-
_BevelWidth ("Bevel Width", Range(-.5,0.5)) = 0
|
|
20
|
-
_BevelClamp ("Bevel Clamp", Range(0,1)) = 0
|
|
21
|
-
_BevelRoundness ("Bevel Roundness", Range(0,1)) = 0
|
|
22
|
-
|
|
23
|
-
_BumpMap ("Normalmap", 2D) = "bump" {}
|
|
24
|
-
_BumpOutline ("Bump Outline", Range(0,1)) = 0.5
|
|
25
|
-
_BumpFace ("Bump Face", Range(0,1)) = 0.5
|
|
26
|
-
|
|
27
|
-
_ReflectFaceColor ("Face Color", Color) = (0,0,0,1)
|
|
28
|
-
_ReflectOutlineColor ("Outline Color", Color) = (0,0,0,1)
|
|
29
|
-
_Cube ("Reflection Cubemap", Cube) = "black" { /* TexGen CubeReflect */ }
|
|
30
|
-
_EnvMatrixRotation ("Texture Rotation", vector) = (0, 0, 0, 0)
|
|
31
|
-
_SpecColor ("Specular Color", Color) = (0,0,0,1)
|
|
32
|
-
|
|
33
|
-
_FaceShininess ("Face Shininess", Range(0,1)) = 0
|
|
34
|
-
_OutlineShininess ("Outline Shininess", Range(0,1)) = 0
|
|
35
|
-
|
|
36
|
-
_GlowColor ("Color", Color) = (0, 1, 0, 0.5)
|
|
37
|
-
_GlowOffset ("Offset", Range(-1,1)) = 0
|
|
38
|
-
_GlowInner ("Inner", Range(0,1)) = 0.05
|
|
39
|
-
_GlowOuter ("Outer", Range(0,1)) = 0.05
|
|
40
|
-
_GlowPower ("Falloff", Range(1, 0)) = 0.75
|
|
41
|
-
|
|
42
|
-
_WeightNormal ("Weight Normal", float) = 0
|
|
43
|
-
_WeightBold ("Weight Bold", float) = 0.5
|
|
44
|
-
|
|
45
|
-
// Should not be directly exposed to the user
|
|
46
|
-
_ShaderFlags ("Flags", float) = 0
|
|
47
|
-
_ScaleRatioA ("Scale RatioA", float) = 1
|
|
48
|
-
_ScaleRatioB ("Scale RatioB", float) = 1
|
|
49
|
-
_ScaleRatioC ("Scale RatioC", float) = 1
|
|
50
|
-
|
|
51
|
-
_MainTex ("Font Atlas", 2D) = "white" {}
|
|
52
|
-
_TextureWidth ("Texture Width", float) = 512
|
|
53
|
-
_TextureHeight ("Texture Height", float) = 512
|
|
54
|
-
_GradientScale ("Gradient Scale", float) = 5.0
|
|
55
|
-
_ScaleX ("Scale X", float) = 1.0
|
|
56
|
-
_ScaleY ("Scale Y", float) = 1.0
|
|
57
|
-
_PerspectiveFilter ("Perspective Correction", Range(0, 1)) = 0.875
|
|
58
|
-
_Sharpness ("Sharpness", Range(-1,1)) = 0
|
|
59
|
-
|
|
60
|
-
_VertexOffsetX ("Vertex OffsetX", float) = 0
|
|
61
|
-
_VertexOffsetY ("Vertex OffsetY", float) = 0
|
|
62
|
-
|
|
63
|
-
_CullMode ("Cull Mode", Float) = 0
|
|
64
|
-
//_MaskCoord ("Mask Coords", vector) = (0,0,0,0)
|
|
65
|
-
//_MaskSoftness ("Mask Softness", float) = 0
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
SubShader {
|
|
69
|
-
|
|
70
|
-
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
|
|
71
|
-
|
|
72
|
-
LOD 300
|
|
73
|
-
Cull [_CullMode]
|
|
74
|
-
|
|
75
|
-
CGPROGRAM
|
|
76
|
-
#pragma surface PixShader BlinnPhong alpha:blend vertex:VertShader nolightmap nodirlightmap
|
|
77
|
-
#pragma target 3.0
|
|
78
|
-
#pragma shader_feature __ GLOW_ON
|
|
79
|
-
#pragma glsl
|
|
80
|
-
|
|
81
|
-
#include "TMPro_Properties.cginc"
|
|
82
|
-
#include "TMPro.cginc"
|
|
83
|
-
|
|
84
|
-
half _FaceShininess;
|
|
85
|
-
half _OutlineShininess;
|
|
86
|
-
|
|
87
|
-
struct Input
|
|
88
|
-
{
|
|
89
|
-
fixed4 color : COLOR;
|
|
90
|
-
float2 uv_MainTex;
|
|
91
|
-
float2 uv2_FaceTex;
|
|
92
|
-
float2 uv2_OutlineTex;
|
|
93
|
-
float2 param; // Weight, Scale
|
|
94
|
-
float3 viewDirEnv;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
#define BEVEL_ON 1
|
|
99
|
-
#include "TMPro_Surface.cginc"
|
|
100
|
-
|
|
101
|
-
ENDCG
|
|
102
|
-
|
|
103
|
-
// Pass to render object as a shadow caster
|
|
104
|
-
Pass
|
|
105
|
-
{
|
|
106
|
-
Name "Caster"
|
|
107
|
-
Tags { "LightMode" = "ShadowCaster" }
|
|
108
|
-
Offset 1, 1
|
|
109
|
-
|
|
110
|
-
Fog {Mode Off}
|
|
111
|
-
ZWrite On
|
|
112
|
-
ZTest LEqual
|
|
113
|
-
Cull Off
|
|
114
|
-
|
|
115
|
-
CGPROGRAM
|
|
116
|
-
#pragma vertex vert
|
|
117
|
-
#pragma fragment frag
|
|
118
|
-
#pragma multi_compile_shadowcaster
|
|
119
|
-
#include "UnityCG.cginc"
|
|
120
|
-
|
|
121
|
-
struct v2f
|
|
122
|
-
{
|
|
123
|
-
V2F_SHADOW_CASTER;
|
|
124
|
-
float2 uv : TEXCOORD1;
|
|
125
|
-
float2 uv2 : TEXCOORD3;
|
|
126
|
-
float alphaClip : TEXCOORD2;
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
uniform float4 _MainTex_ST;
|
|
130
|
-
uniform float4 _OutlineTex_ST;
|
|
131
|
-
float _OutlineWidth;
|
|
132
|
-
float _FaceDilate;
|
|
133
|
-
float _ScaleRatioA;
|
|
134
|
-
|
|
135
|
-
v2f vert( appdata_base v )
|
|
136
|
-
{
|
|
137
|
-
v2f o;
|
|
138
|
-
TRANSFER_SHADOW_CASTER(o)
|
|
139
|
-
o.uv = TRANSFORM_TEX(v.texcoord, _MainTex);
|
|
140
|
-
o.uv2 = TRANSFORM_TEX(v.texcoord, _OutlineTex);
|
|
141
|
-
o.alphaClip = (1.0 - _OutlineWidth * _ScaleRatioA - _FaceDilate * _ScaleRatioA) / 2;
|
|
142
|
-
return o;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
uniform sampler2D _MainTex;
|
|
146
|
-
|
|
147
|
-
float4 frag(v2f i) : COLOR
|
|
148
|
-
{
|
|
149
|
-
fixed4 texcol = tex2D(_MainTex, i.uv).a;
|
|
150
|
-
clip(texcol.a - i.alphaClip);
|
|
151
|
-
SHADOW_CASTER_FRAGMENT(i)
|
|
152
|
-
}
|
|
153
|
-
ENDCG
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
CustomEditor "TMPro.EditorUtilities.TMP_SDFShaderGUI"
|
|
158
|
-
}
|
|
159
|
-
|