meteorgame/Assets/UnityChan/Art/UnityChanShader/Shader/Unitychan_chara_hada.shader

55 lines
908 B
Plaintext
Raw Permalink Normal View History

2021-03-18 15:56:10 +00:00
Shader "UnityChan/Skin"
{
Properties
{
_Color ("Main Color", Color) = (1, 1, 1, 1)
_ShadowColor ("Shadow Color", Color) = (0.8, 0.8, 1, 1)
_EdgeThickness ("Outline Thickness", Float) = 1
_MainTex ("Diffuse", 2D) = "white" {}
_FalloffSampler ("Falloff Control", 2D) = "white" {}
_RimLightSampler ("RimLight Control", 2D) = "white" {}
}
SubShader
{
Tags
{
"RenderType"="Opaque"
"Queue"="Geometry"
"LightMode"="ForwardBase"
}
Pass
{
Cull Back
ZTest LEqual
CGPROGRAM
#pragma multi_compile_fwdbase
#pragma target 3.0
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
#include "AutoLight.cginc"
#include "CharaSkin.cg"
ENDCG
}
Pass
{
Cull Front
ZTest Less
CGPROGRAM
#pragma target 3.0
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
#include "CharaOutline.cg"
ENDCG
}
}
FallBack "Transparent/Cutout/Diffuse"
}