Quick & Dirty trick to render a debug wireframe for your poly meshes, assuming you are rendering with 8X MSAA (which you are, aren't you, AREN'T YOU!!): In your fragment shader, at the end of the fragment shader, add color = (bitCount(gl_SampleMaskIn[0])<8) ? vec3(0.0) : color;
-
-
Worked super well! Super clever; took me a hot minute to figure out what exactly was happening, though.
https://twitter.com/andreduvoisin/status/1133116563400343557 …
-
Notably, the `<8` for 8x MSAA can be replaced with gl_NumSamples to accomodate other MSAA sample numbers.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.