Added North America floor map.
This commit is contained in:
@@ -10,6 +10,8 @@ Shader "Carmen/Maps/SDF Map Borders"
|
||||
{
|
||||
_MainTex ("SDF", 2D) = "white" {}
|
||||
_ColourTex ("Country Colours", 2D) = "white" {}
|
||||
|
||||
_LineThickness ("Line Thickness", float) = 0.15
|
||||
}
|
||||
|
||||
SubShader
|
||||
@@ -41,6 +43,10 @@ Shader "Carmen/Maps/SDF Map Borders"
|
||||
UNITY_DECLARE_TEX2D(_MainTex);
|
||||
UNITY_DECLARE_TEX2D(_ColourTex);
|
||||
|
||||
CBUFFER_START(UnityPerMaterial)
|
||||
float _LineThickness;
|
||||
CBUFFER_END
|
||||
|
||||
struct SurfaceOutputVRC
|
||||
{
|
||||
fixed3 Albedo;
|
||||
@@ -60,7 +66,7 @@ Shader "Carmen/Maps/SDF Map Borders"
|
||||
|
||||
void surf (Input IN, inout SurfaceOutputVRC o)
|
||||
{
|
||||
half linestep = step(UNITY_SAMPLE_TEX2D(_MainTex, IN.uv_MainTex), 0.025);
|
||||
half linestep = step(UNITY_SAMPLE_TEX2D(_MainTex, IN.uv_MainTex), _LineThickness);
|
||||
o.Albedo = lerp(UNITY_SAMPLE_TEX2D(_ColourTex, IN.uv_MainTex), half4(0.0, 0.0, 0.0, 1.0), linestep);
|
||||
o.Alpha = 1.0f;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user