mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 12:48:57 +00:00
Simple post-processing shader implementation. No UI yet. Does not work together with AA yet. To use shader bad_bloom, for example, set PostProcessingShader under [Enhancements] in gfx_opengl.ini.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3380 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
fd5a4ee71a
commit
085fa5f526
9 changed files with 190 additions and 1 deletions
|
@ -51,6 +51,7 @@
|
|||
#include "VertexShaderManager.h"
|
||||
#include "VertexLoaderManager.h"
|
||||
#include "VertexLoader.h"
|
||||
#include "PostProcessing.h"
|
||||
#include "XFB.h"
|
||||
#include "OnScreenDisplay.h"
|
||||
#include "Timer.h"
|
||||
|
@ -955,7 +956,8 @@ void Renderer::Swap(const TRectangle& rc)
|
|||
*/
|
||||
|
||||
// Here's an opportunity to bind a fragment shader to do post processing.
|
||||
|
||||
PostProcessing::ApplyShader();
|
||||
|
||||
glBegin(GL_QUADS);
|
||||
glTexCoord2f(0, v_min); glVertex2f(-1, -1);
|
||||
glTexCoord2f(0, v_max); glVertex2f(-1, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue