Skip to content

Instantly share code, notes, and snippets.

@reiji1020
Created June 18, 2014 02:58
Show Gist options
  • Select an option

  • Save reiji1020/324eae168308ad6750e1 to your computer and use it in GitHub Desktop.

Select an option

Save reiji1020/324eae168308ad6750e1 to your computer and use it in GitHub Desktop.
Shader "FX/Matte Shadow" {
Properties {
_Color ("Main Color", Color) = (1,1,1,1)
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
_Cutoff ("Alpha cutoff", Range(0,1)) = 0.5
}
SubShader {
Tags {"Queue"="AlphaTest" "IgnoreProjector"="True" "RenderType"="TransparentCutout"}
LOD 200
Blend Zero SrcColor
CGPROGRAM
#pragma surface surf ShadowOnly alphatest:_Cutoff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment