Laplacian fragment shader.
More...
|
in vec2 | uv |
| UV coordinates.
|
|
uniform uniform int | scale |
| The downscaling applied to the input image.
|
|
out vec4 | fragColor |
| Color.
|
|
◆ isOutside()
bool GPUShaders::Frag::Laplacian::isOutside |
( |
vec2 |
pos | ) |
|
|
inline |
Denotes if UV coordinates falls outside an image.
- Parameters
-
- Returns
- true if the UV are outside of the image
◆ main()
void GPUShaders::Frag::Laplacian::main |
( |
| ) |
|
|
inline |
Compute the Laplacian field of an input RGB image, adding a 1px black border around it before computing the gradients and divergence.
The documentation for this class was generated from the following file:
- resources/common/shaders/screens/convolution-pyramid/laplacian.frag