diff options
author | taw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5> | 2008-06-12 17:37:38 +0000 |
---|---|---|
committer | taw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5> | 2008-06-12 17:37:38 +0000 |
commit | f144fc6fbc30ef8c4a22f57a2e456d0ae58ecbae (patch) | |
tree | edb575e5547ec8eb7a61a6ef44a2c816e0edf384 /src | |
parent | 098bea2bfbd8a35a4fb5c41c2a08dde8c163961c (diff) |
Reduce resolution of swirly texture
git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@95 84d2e878-0bd5-11dd-ad15-13eda11d74c5
Diffstat (limited to 'src')
-rw-r--r-- | src/render.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render.c b/src/render.c index 51a4b73..5068079 100644 --- a/src/render.c +++ b/src/render.c @@ -234,7 +234,7 @@ RenderContext *render_setup(int width, int height, int disable_vbos, int disable glBindTexture(GL_TEXTURE_2D, r->swirly_texture); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, 128, 128, 0, GL_RGBA, GL_UNSIGNED_BYTE, 0); + glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, 64, 64, 0, GL_RGBA, GL_UNSIGNED_BYTE, 0); glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, GL_TEXTURE_2D, r->swirly_texture, 0); glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0); @@ -694,7 +694,7 @@ void render_draw(Game *game, Uint32 t) { /* Render some swirlyness */ glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, r->swirly_fbo); glClear(GL_COLOR_BUFFER_BIT); - glViewport(0, 0, 128, 128); + glViewport(0, 0, 64, 64); if ( r->shaders ) glUseProgram(r->swirly_program); if ( r->shaders ) glUniform1f(glGetUniformLocation(game->render->swirly_program, "time"), t); glMatrixMode(GL_PROJECTION); |