*
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
Shader "Custom/Joystick" {
|
||||
Properties {
|
||||
_MainTex ("Base (RGB)", 2D) = "white" {}
|
||||
_TintColor("Color Tint", Color) = (1,1,1,1)
|
||||
}
|
||||
SubShader {
|
||||
Blend SrcAlpha OneMinusSrcAlpha
|
||||
CGPROGRAM
|
||||
#pragma surface surf Lambert
|
||||
|
||||
float4 _TintColor;
|
||||
sampler2D _MainTex;
|
||||
|
||||
struct Input {
|
||||
float2 uv_MainTex;
|
||||
};
|
||||
|
||||
void surf (Input IN, inout SurfaceOutput o) {
|
||||
float c = tex2D (_MainTex, IN.uv_MainTex).a;
|
||||
|
||||
o.Albedo = _TintColor.rgb;
|
||||
o.Alpha = c * _TintColor.a;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
FallBack "Diffuse"
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1f38885a431531140abc9d5443dc18ec
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
Reference in New Issue
Block a user