Hi,
What's the range of the vertex position in shader after multiplying the UNITY_MATRIX_MVP
I want to do some geometry operations on each vertex.And are there any good ways in debugging shader?
Especially in watching variables' value.
Thanks.
struct v2f
{
float4 pos : SV_POSITION;
half2 uv : TEXCOORD0;
};
v2f vert(appdata_img v)
{
v2f o;
o.pos = mul(UNITY_MATRIX_MVP, v.vertex);
//What is the position's x,y,z element' range?
...
...
return o;
}
↧