Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Shader "Custom/2D Flat" {
- Properties {
- _Color ("Color", Color) = (1,1,1,1)
- }
- SubShader {
- Tags { "RenderType"="Opaque" }
- LOD 200
- CGPROGRAM
- #pragma surface surf Lambert vertex:vert
- fixed4 _Color;
- struct Input {
- float dummy;
- };
- void vert (inout appdata_full v) {
- v.normal = float3(0, 0, -1);
- }
- void surf (Input IN, inout SurfaceOutput o) {
- o.Albedo = _Color.rgb;
- }
- ENDCG
- }
- FallBack "Diffuse"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement