What does the “in” do in a function’s parameter?
For example:
//With "in"
inline float4 UnityWorldToClipPos( in float3 pos )
{
return mul(UNITY_MATRIX_VP, float4(pos, 1.0));
}
//Without "in"
inline float4 UnityWorldToClipPos( float3 pos )
{
return mul(UNITY_MATRIX_VP, float4(pos, 1.0));
}