Created
January 25, 2014 05:24
-
-
Save mikelovesrobots/8612221 to your computer and use it in GitHub Desktop.
Unlit/transparent shader that can flash the textures white (pure black is all original texture, white is all white)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Unlit/TransparentFlashFX" { | |
Properties { | |
_Color ("Color Tint", Color) = (1,1,1,1) | |
_MainTex ("SelfIllum Color (RGB) Alpha (A)", 2D) = "white" | |
} | |
Category { | |
Lighting On | |
ZWrite Off | |
Cull Back | |
Blend SrcAlpha OneMinusSrcAlpha | |
Tags {Queue=Transparent} | |
SubShader { | |
Material { | |
Emission [_Color] | |
} | |
Pass { | |
SetTexture [_MainTex] { | |
Combine Texture + Primary, Texture | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For what it's worth, you can use this in wherever. MIT license.