
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!
32 lines
552 B
HLSL
32 lines
552 B
HLSL
|
|
#ifndef INPUT_DATA_2D_INCLUDED
|
|
#define INPUT_DATA_2D_INCLUDED
|
|
|
|
struct InputData2D
|
|
{
|
|
float2 uv;
|
|
half2 lightingUV;
|
|
|
|
#if defined(DEBUG_DISPLAY)
|
|
float3 positionWS;
|
|
float4 texelSize;
|
|
float4 mipInfo;
|
|
uint mipCount;
|
|
#endif
|
|
};
|
|
|
|
void InitializeInputData(float2 uv, half2 lightingUV, out InputData2D inputData)
|
|
{
|
|
inputData = (InputData2D)0;
|
|
|
|
inputData.uv = uv;
|
|
inputData.lightingUV = lightingUV;
|
|
}
|
|
|
|
void InitializeInputData(float2 uv, out InputData2D inputData)
|
|
{
|
|
InitializeInputData(uv, 0, inputData);
|
|
}
|
|
|
|
#endif
|