Skip to content

Instantly share code, notes, and snippets.

@mikelovesrobots
Created January 25, 2014 05:24
Show Gist options
  • Save mikelovesrobots/8612221 to your computer and use it in GitHub Desktop.
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)
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
}
}
}
}
}
@mikelovesrobots
Copy link
Author

For what it's worth, you can use this in wherever. MIT license.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment