Added player character and step in/out of dialogue in scene 101
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
Shader "Hidden/ProBuilder/EdgePicker"
|
||||
{
|
||||
Properties {}
|
||||
|
||||
SubShader
|
||||
{
|
||||
Tags
|
||||
{
|
||||
"ProBuilderPicker"="EdgePass"
|
||||
"IgnoreProjector"="True"
|
||||
"DisableBatching"="True"
|
||||
"LightMode"="Always"
|
||||
}
|
||||
|
||||
Lighting Off
|
||||
ZTest LEqual
|
||||
ZWrite On
|
||||
Cull Off
|
||||
Blend Off
|
||||
|
||||
Pass
|
||||
{
|
||||
Name "Edges"
|
||||
AlphaTest Greater .25
|
||||
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
#include "UnityCG.cginc"
|
||||
#include "ProBuilderCG.cginc"
|
||||
|
||||
struct appdata
|
||||
{
|
||||
float4 vertex : POSITION;
|
||||
float4 color : COLOR;
|
||||
};
|
||||
|
||||
struct v2f
|
||||
{
|
||||
float4 pos : SV_POSITION;
|
||||
float4 color : COLOR;
|
||||
};
|
||||
|
||||
v2f vert (appdata v)
|
||||
{
|
||||
v2f o;
|
||||
o.pos = UnityObjectToClipPosWithOffset(v.vertex.xyz);
|
||||
o.color = v.color;
|
||||
return o;
|
||||
}
|
||||
|
||||
float4 frag (v2f i) : COLOR
|
||||
{
|
||||
return i.color;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user