projectEli/Assets/Standard Assets/Asset Store Downloads/Menu System/GUI Elements/UI_BrightnessShader/BrightnessEffect.shader

28 lines
448 B
Plaintext
Raw Normal View History

2022-10-08 02:26:09 +00:00
Shader "Hidden/Brightness Effect" {
Properties{
_MainTex("Base (RGB)", 2D) = "white" {}
_Brightness("Brightness", Float) = 1.0
}
SubShader{
Pass{
ZTest Always Cull Off ZWrite Off
CGPROGRAM
#pragma vertex vert_img
#pragma fragment frag
#include "UnityCG.cginc"
uniform sampler2D _MainTex;
float _Brightness;
fixed4 frag(v2f_img i) : SV_Target{
return tex2D(_MainTex, i.uv) * _Brightness;
}
ENDCG
}
}
Fallback off
}