Accessing depthmask in Unity

Accessing depthmask in Unity

How do you access the DepthMask in Unity? The parameter is ref short[], but is the dimension width*height obtained from QueryDepthMaskSize? In addition, which pixel corresponds to which entry?

Can you provide an example snippet that maps to the UV map and possibly RGB color as well?  

5 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

up

Can you be more specific? Not familiar with the DepthMask you are referring to.

Particularly, how do you relate QueryDepthMask and QueryUV

up - please take a look at Unity framework implementation

Leave a Comment

Please sign in to add a comment. Not a member? Join today