Quantcast
Channel: Latest Questions by Yanger_xy
Viewing all articles
Browse latest Browse all 61

what's the range of position's element's range after multiply UNITY_MATRIX_MVP

$
0
0
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; }

Viewing all articles
Browse latest Browse all 61

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>