what is the differncd between “struct v2f { and “struct v2f{ why do we need SV_POSITION and TEXCOORD0 stuff?
float4 pos : SV_POSITION; float4 pos;
float2 uv : TEXCOORD0; float2 uv;
};” }”
sorry something wrong with the margin.
what is the difference between "float4 pos:SV_POSITION"and "float4 pos;"why do we need SV_POSITION and TEXCOORD0 stuff?
This should really be in the Shader section. It defines the semantic for that parameter. It basically tells the shader where the data is coming from in the application.