On 14/06/2012 12:08, Gregg Tavares (çç) wrote:
If the author's intention is that the pattern always approximates to some particular size in human terms, then the shader above is buggy.Â Given the wide range of screen resolutions out there (in the proper sense of resolution) a pattern like that is obviously going to render at many different actual sizes. Perhaps the author intends it to vary in actual size.
The shader above would have exactly the same problem in native GL going from a low to a high-resolution display. In that case everything is in the device pixels you're arguing for.
It's always been true that if you want something to remain at a size having a certain visibility across different resolutions you need to pay attention to the resolution in all your computations.
I like Glen's proposal.