Last active
August 16, 2022 19:14
-
-
Save dev-fredericfox/7fc663a2e2b14544bbbcc30797ad4bcf to your computer and use it in GitHub Desktop.
This file contains hidden or 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 "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