This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
project-undercover/Project Undercover/Assets/Shaders/GlowReplace.shader

48 lines
639 B
Text
Raw Normal View History

2017-10-03 04:15:13 -05:00
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
Shader "Hidden/GlowReplace"
{
SubShader
{
Tags
{
"RenderType"="Opaque"
"Glowable" = "True"
}
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
struct appdata
{
float4 vertex : POSITION;
};
struct v2f
{
float4 vertex : SV_POSITION;
};
v2f vert (appdata v)
{
v2f o;
o.vertex = UnityObjectToClipPos(v.vertex);
return o;
}
fixed4 _GlowColor;
fixed4 frag (v2f i) : SV_Target
{
return _GlowColor;
}
ENDCG
}
}
}