(I’ve been having a pain trying to google this. and searching through Unity manual for it was revealing lots of results with no clear explanation)
I’m looking at equations in shader examples like:
float2 steppedUV = IN.grabUV.xy / IN.grabUV.w;
// where IN.grabUV is TEXCOORD0, which is at least a float2.
The problem is that I don’t know what “.xy” is. is it the value of X * Y, is it a float2 being exported with the X & Y values? if it is a float 2 being returned, how does division work on float 2’s. My impression is in Unity you can’t divide a vector by another vector.
- Thanks.