#ifndef SG_LIT_META_INCLUDED #define SG_LIT_META_INCLUDED PackedVaryings vert(Attributes input) { Varyings output = (Varyings)0; output = BuildVaryings(input); PackedVaryings packedOutput = (PackedVaryings)0; packedOutput = PackVaryings(output); return packedOutput; } half4 frag(PackedVaryings packedInput) : SV_TARGET { Varyings unpacked = UnpackVaryings(packedInput); UNITY_SETUP_INSTANCE_ID(unpacked); SurfaceDescriptionInputs surfaceDescriptionInputs = BuildSurfaceDescriptionInputs(unpacked); SurfaceDescription surfaceDescription = SurfaceDescriptionFunction(surfaceDescriptionInputs); #if _AlphaClip clip(surfaceDescription.Alpha - surfaceDescription.AlphaClipThreshold); #endif MetaInput metaInput = (MetaInput)0; metaInput.Albedo = surfaceDescription.Albedo; metaInput.Emission = surfaceDescription.Emission; return MetaFragment(metaInput); } #endif