Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
BilateralBlur.hpp
1#pragma once
2
3#include "resources/Texture.hpp"
4#include "graphics/Program.hpp"
5#include "Common.hpp"
6
14
15public:
20 BilateralBlur(const std::string & name);
21
31 void process(const glm::mat4 & projection, const Texture& src, const Texture& depthTex, const Texture& normalTex, Texture & dst);
32
33private:
34
39 void resize(uint width, uint height);
40
43};
Apply an approximate bilateral blur to a texture. This can be used to blur while preserving edges,...
Definition: BilateralBlur.hpp:13
void process(const glm::mat4 &projection, const Texture &src, const Texture &depthTex, const Texture &normalTex, Texture &dst)
Definition: BilateralBlur.cpp:11
void resize(uint width, uint height)
Definition: BilateralBlur.cpp:45
Program * _filter
Bilateral hader.
Definition: BilateralBlur.hpp:42
Texture _intermediate
Intermediate texture.
Definition: BilateralBlur.hpp:41
Represents a group of shaders used for rendering.
Definition: Program.hpp:31
Represents a texture containing one or more images, stored on the CPU and/or GPU.
Definition: Texture.hpp:12