Implemented camera downsampling (without reducing the render target resolution, for temporary drops of resolution without any skipped frames)

--HG--
branch : nfb
This commit is contained in:
2014-04-29 00:30:14 -07:00
parent e9c17df900
commit 16953ba932
6 changed files with 46 additions and 23 deletions

View File

@@ -25,6 +25,7 @@
// or implied, of Kearwood Gilbert.
//
uniform mediump vec2 viewport_downsample;
attribute vec4 vertex_position;
attribute lowp vec4 vertex_uv;
@@ -33,5 +34,5 @@ varying mediump vec2 textureCoordinate;
void main()
{
gl_Position = vertex_position;
textureCoordinate = vertex_uv.xy;
}
textureCoordinate = vertex_uv.xy * viewport_downsample.xy;
}