W3C home > Mailing lists > Public > www-style@w3.org > October 2011

[css-shaders] render size?

From: Gregg Tavares (wrk) <gman@google.com>
Date: Mon, 24 Oct 2011 09:59:14 -0700
Message-ID: <CAKZ+BNr7d3iQSirbOH0bareMfPhA1vUThCstJG3wnggJvOJLbQ@mail.gmail.com>
To: www-style list <www-style@w3.org>
How do you specify the resolution of the texture the CSS-shader renderer
elements will be rendered too?

If I apply a CSS-shader to 100x100 pixel element, I can just put

  gl_Positoin = u_projectionMatrix *  a_position * 100.0;

In order to render that element I now need a 10000x10000 texture. At least
as I currently understand it. That element could be 3D CSSed to project into
the background so I don't want to see it's edges cut off. It also needs to
get composited with other elements on the page so I can't just "render to
the backbuffer".
Received on Monday, 24 October 2011 16:59:48 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:51 UTC