SceneDebugViewer/Runtime/Shaders/Lit.shader

31 lines
653 B
Plaintext
Raw Permalink Normal View History

Shader "Hidden/RS/Lit"
2021-03-31 01:20:21 +02:00
{
SubShader
{
Tags { "RenderType"="Opaque" }
LOD 200
CGPROGRAM
#pragma surface surf Standard fullforwardshadows
#pragma target 3.0
#include "RSPropertiesCG.cginc"
2021-03-31 01:20:21 +02:00
struct Input
{
float2 uv_MainTex;
2021-03-31 01:20:21 +02:00
};
void surf (Input IN, inout SurfaceOutputStandard o)
{
fixed4 c = tex2D(_RS_Texture, IN.uv_MainTex) * _RS_Color;
o.Albedo = c.rgb;
2021-03-31 01:20:21 +02:00
o.Metallic = _RS_Metallic;
o.Smoothness = _RS_Glossiness;
o.Alpha = c.a;
2021-03-31 01:20:21 +02:00
}
ENDCG
}
FallBack "Diffuse"
}