Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dev-fredericfox/7fc663a2e2b14544bbbcc30797ad4bcf to your computer and use it in GitHub Desktop.
Save dev-fredericfox/7fc663a2e2b14544bbbcc30797ad4bcf to your computer and use it in GitHub Desktop.
Shader "CustomRenderTexture/FOWLightNoSmoothing"
{
Properties
{
_Color ("Color", Color) = (1,1,1,1)
_Tex("InputTex", 2D) = "white" {}
}
SubShader
{
Lighting Off
Blend One Zero
Pass
{
CGPROGRAM
#include "UnityCustomRenderTexture.cginc"
#pragma vertex CustomRenderTextureVertexShader
#pragma fragment frag
#pragma target 3.0
float4 _Color;
sampler2D _Tex;
float4 frag(v2f_customrendertexture IN) : COLOR
{
return _Color * tex2D(_Tex, IN.localTexcoord.xy);
}
ENDCG
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment