Skip to content

Instantly share code, notes, and snippets.

@keijiro
Created January 26, 2012 04:47
Show Gist options
  • Star 24 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save keijiro/1681052 to your computer and use it in GitHub Desktop.
Save keijiro/1681052 to your computer and use it in GitHub Desktop.
Unlit Transparent Colored Shader
Shader "Unlit/Transparent Colored" {
Properties {
_Color ("Main Color", Color) = (1,1,1,1)
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
}
SubShader {
Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent"}
ZWrite Off
Lighting Off
Fog { Mode Off }
Blend SrcAlpha OneMinusSrcAlpha
Pass {
Color [_Color]
SetTexture [_MainTex] { combine texture * primary }
}
}
}
@BabakFiroozi
Copy link

very awesome, thanks

@cihadturhan
Copy link

Thanks! Why isn't this a default shader in unity 🤦

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