[Unity Shader] 기본 Shader 구성 파악하기
기본적으로 Unity에서 StandardSurface Shader를 생성하면 나오는 형태는 아래와 같다. Shader "Custom/StandardSurface" { Properties { _Color ("Color", Color) = (1,1,1,1) _MainTex ("Albedo (RGB)", 2D) = "white" {} _Glossiness ("Smoothness", Range(0,1)) = 0.5 _Metallic ("Metallic", Range(0,1)) = 0.0 } SubShader { Tags { "RenderType"="Opaque" } LOD 200 CGPROGRAM // Physically based Standard lighting model, and enable shadows ..