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
19
src/shader.h
19
src/shader.h
|
@ -210,6 +210,25 @@ private:
|
|||
GLint u_hueAdjust, u_inputTexture;
|
||||
};
|
||||
|
||||
/* Gaussian blur */
|
||||
struct BlurShader
|
||||
{
|
||||
class HPass : public ShaderBase
|
||||
{
|
||||
public:
|
||||
HPass();
|
||||
};
|
||||
|
||||
class VPass : public ShaderBase
|
||||
{
|
||||
public:
|
||||
VPass();
|
||||
};
|
||||
|
||||
HPass pass1;
|
||||
VPass pass2;
|
||||
};
|
||||
|
||||
/* Bitmap blit */
|
||||
class BltShader : public ShaderBase
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue