Skip to content

Instantly share code, notes, and snippets.

View sbmjob's full-sized avatar

SBMJOB sbmjob

View GitHub Profile
@sbmjob
sbmjob / AlphaTest_ForWeb.shader
Last active December 4, 2018 03:04
Custom Shader AlphaTest for Unity
Shader "Custom/AlphaTest_ForWeb" {
Properties {
_MainTex ("Albedo (RGB)", 2D ) = "white" {}
_Cutoff ("Cutoff" , Range(0, 1)) = 0.5
}
SubShader {
Tags {
"Queue" = "AlphaTest"
"RenderType" = "TransparentCutout"
@sbmjob
sbmjob / ClipShader_ForWeb.shader
Last active December 4, 2018 04:01
Clip Shader
Shader "Unlit/ClipShader_ForWeb"{
Properties{
_MainTex ("Texture", 2D) = "white" {}
}
SubShader{
Tags { "RenderType"="Opaque" }
LOD 100
Cull Off
Shader "Custom/Mask_Transparent_ForWeb"
{
Properties {
_MainTex ("Albedo (RGB)", 2D) = "white" {}
}
SubShader {
Tags
{
"Queue" = "Transparent"
@sbmjob
sbmjob / Butterfly_ForWeb.shader
Created December 4, 2018 05:36
Vertex Shader Butterfly
Shader "Unlit/Butterfly_ForWeb"{
Properties{
_MainTex ("Texture", 2D) = "white" {}
}
SubShader{
Tags { "RenderType"="Opaque" }
LOD 100
Cull Off
Pass{