Hi, when I render a mask by setting the color value of vertices to be 255. I find the pixel value of the mask is 255.0006, I posted part of the code. Did I do something wrong?
Slight imprecision like this is expected behaviour, due to how the GPU internally does rasterisation. So it's always safest to use robust checks (e.g. >254 instead of ==255).
Hi, when I render a mask by setting the color value of vertices to be 255. I find the pixel value of the mask is 255.0006, I posted part of the code. Did I do something wrong?