Created
March 3, 2013 19:00
-
-
Save Groogy/5077647 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
World::doPostProcessing() | |
{ | |
// The different steps/techniques for bloom, first argument input, second output | |
mPostRenderer.apply(Shaders::BrightnessPass, mSceneTexture, mBrightnessTexture); | |
mPostRenderer.apply(Shaders::DownSample, mBrightnessTexture, mBloomTexture1); | |
mPostRenderer.apply(Shaders::GuassianBlurVertical, mBloomTexture1, mBloomTexture2); | |
mPostRenderer.apply(Shaders::GuassianBlurHorizontal, mBloomTexture2, mBloomTexture1); | |
mPostRenderer.apply(Shaders::GuassianBlurVertical, mBloomTexture1, mBloomTexture2); | |
mPostRenderer.apply(Shaders::GuassianBlurHorizontal, mBloomTexture2, mBloomTexture1); | |
// This one has two input and the last is output | |
mPostRenderer.apply(Shaders::Add, mBloomTexture1, mSceneTexture, mWindow); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment