Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Shader "Xibanya/XibStandard"
- {
- Properties
- {
- _Color ("Color", Color) = (1,1,1,1)
- _MainTex ("Albedo (RGB)", 2D) = "white" {}
- _BumpMap("Normal", 2D) = "bump" {}
- _NormalStrength("Normal Strength", Float) = 1
- }
- SubShader
- {
- Tags { "RenderType"="Opaque" }
- LOD 200
- CGPROGRAM
- #pragma surface surf Standard fullforwardshadows
- #pragma target 3.0
- sampler2D _MainTex;
- sampler2D _BumpMap;
- struct Input
- {
- float2 uv_MainTex;
- };
- fixed4 _Color;
- float _NormalStrength;
- void surf (Input IN, inout SurfaceOutputStandard o)
- {
- o.Albedo = tex2D(_MainTex, IN.uv_MainTex).rgb * _Color;
- o.Normal = UnpackNormal(tex2D(_BumpMap, IN.uv_MainTex));
- o.Normal.z *= _NormalStrength;
- }
- ENDCG
- }
- FallBack "Diffuse"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement