On Jun 21, 2012, at 12:55 AM, Florian Bösch wrote:
On Thu, Jun 21, 2012 at 2:09 AM, Chris Marrin <firstname.lastname@example.org> wrote:
I'm not sure if you're vehemently disagreeing with something I said. But I agree with all that you said. All the concepts you mention are internal to WebGL so they are deal with real pixels. It is only in communicating with the outside world (the page) that the fact that CSS pixels are not always equal to real pixels must be faced.
For instance, if an image comes in that has a "width" and "height" of 300 x 200, then when it is made into a texture it must be 300 pixels by 200 pixels. If the image is actually larger because it was expressed in "CSS Pixels" then it needs to be scaled down. There also needs to be a way for an author to know the actual pixel dimensions of the image so the full resolution can be used if desired. But that has to be opt-in. The same goes for getting pixels out of WebGL and back to the page.