Implement Bitmap 'blur'
I was a bit confused at first because I thought Enterbrain had actually implemented a full Gaussian blur, but nope, just dumb averaging.
This commit is contained in:
parent
20ec560145
commit
a54acce6b7
10 changed files with 149 additions and 1 deletions
|
@ -37,10 +37,13 @@
|
|||
#include "../simpleColor.frag.xxd"
|
||||
#include "../simpleAlpha.frag.xxd"
|
||||
#include "../flashMap.frag.xxd"
|
||||
#include "../blur.frag.xxd"
|
||||
#include "../simple.vert.xxd"
|
||||
#include "../simpleColor.vert.xxd"
|
||||
#include "../sprite.vert.xxd"
|
||||
#include "../simpleMatrix.vert.xxd"
|
||||
#include "../blurH.vert.xxd"
|
||||
#include "../blurV.vert.xxd"
|
||||
|
||||
|
||||
#define INIT_SHADER(vert, frag) \
|
||||
|
@ -422,6 +425,22 @@ void HueShader::setInputTexture(TEX::ID tex)
|
|||
}
|
||||
|
||||
|
||||
BlurShader::HPass::HPass()
|
||||
{
|
||||
INIT_SHADER(blurH, blur);
|
||||
|
||||
ShaderBase::init();
|
||||
}
|
||||
|
||||
BlurShader::VPass::VPass()
|
||||
{
|
||||
INIT_SHADER(blurV, blur);
|
||||
|
||||
ShaderBase::init();
|
||||
}
|
||||
|
||||
|
||||
|
||||
BltShader::BltShader()
|
||||
{
|
||||
INIT_SHADER(simple, bitmapBlit);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue