Hi,
I am completely unfamiliar with shaders.
I am using this shader to make texture appear on GUI as grayscale.
Shader "Custom/Grayscale" {
Properties {
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
}
SubShader {
Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent"}
LOD 200
CGPROGRAM
#pragma surface surf Lambert alpha
sampler2D _MainTex;
struct Input {
float2 uv_MainTex;
};
void surf (Input IN, inout SurfaceOutput o) {
half4 c = tex2D(_MainTex, IN.uv_MainTex);
o.Albedo = dot(c.rgb, float3(0.22, 0.707, 0.071));
o.Alpha = c.a;
}
ENDCG
}
Fallback "Transparent/VertexLit"
}
The only problem is that textures appear very dark, almost black.
Is there a way to make them brighter?
Thank you.