[Shader Graph][CODE] Custom Function - Light
Shader Graph v14.0.8에서 작성 Custom Function으로 사용하기 위한 코드 백업 Main Light void CustomLight_float( float3 WorldPos, out float3 Direction , out float3 Color, out float ShadowAtten, out float DistanceAtten) { #ifdef SHADERGRAPH_PREVIEW Direction = float3(1,1,1); Color = float3(1,1,1); ShadowAtten = 1.0f; DistanceAtten = 1.0f; #else #if defined(_MAIN_LIGHT_SHADOWS_SCREEN) && !defined(_SURFACE_TYPE_TRANSP..