I can’t find it.
Shader "Drahsid/Drahsid's Shader 0.0.0.1" //First build.
{
Properties
{
_ColorTint("Color Tint", Color) = (1,1,1,1)
_Texture("Main Texture", 2D) = "white"{}
_Bumpmap("Normal Map", 2D) = "bump"{}
}
SubShader
{
Tags{"RenderType"="Opaque"}
CGPROGRAM
#pragma surface surf lambert
struct Input
{
float4 color : COLOR;
float2 uv_Texture;
float2 uv_Bumpmap;
};
float4 _ColorTint;
sampler2D _Texture;
sampler2D _Bumpmap;
void surf(Input IN, inout SurfaceOutput o)
{
IN.color = _ColorTint;
o.Albedo = tex2D{_Texture, IN.uv_Texture}.rgb * IN.color; //This line is returning bad.
o.Normal = UnpackNormal(tex2D(_Bumpmap, IN.uv_Bumpmap));
}
ENDCG
}
Fallback "Diffuse"
}