
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!
18 lines
534 B
HLSL
18 lines
534 B
HLSL
PackedVaryings vert(Attributes input)
|
|
{
|
|
Varyings output = (Varyings)0;
|
|
output = BuildVaryings(input);
|
|
PackedVaryings packedOutput = PackVaryings(output);
|
|
return packedOutput;
|
|
}
|
|
|
|
half4 frag(PackedVaryings packedInput) : SV_TARGET
|
|
{
|
|
Varyings unpacked = UnpackVaryings(packedInput);
|
|
|
|
SurfaceDescriptionInputs surfaceDescriptionInputs = BuildSurfaceDescriptionInputs(unpacked);
|
|
SurfaceDescription surfaceDescription = SurfaceDescriptionFunction(surfaceDescriptionInputs);
|
|
|
|
return surfaceDescription.Out;
|
|
}
|