9092858a58
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
27 lines
660 B
HLSL
27 lines
660 B
HLSL
#ifndef SG_SHADOW_PASS_INCLUDED
|
|
#define SG_SHADOW_PASS_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);
|
|
SurfaceDescription surfaceDescription = BuildSurfaceDescription(unpacked);
|
|
|
|
#if _ALPHATEST_ON
|
|
clip(surfaceDescription.Alpha - surfaceDescription.AlphaClipThreshold);
|
|
#endif
|
|
|
|
return 0;
|
|
}
|
|
|
|
#endif
|