Downscale fragment shader.
More...
|
in vec2 | uv |
| UV coordinates.
|
|
uniform uniform out vec4 | fragColor |
| Color.
|
|
uniform uniform float | h1 [5] |
| h1 filter parameters.
|
|
◆ isOutside()
bool GPUShaders::Frag::Downscale::isOutside |
( |
ivec2 |
pos, |
|
|
ivec2 |
size |
|
) |
| |
|
inline |
Denotes if a pixel falls outside an image.
- Parameters
-
pos | the pixel position |
size | the image size |
- Returns
- true if the pixel is outside of the image
◆ main()
void GPUShaders::Frag::Downscale::main |
( |
| ) |
|
|
inline |
Apply the h1 filter and downscale the input data by a factor of 2.
The documentation for this class was generated from the following file:
- resources/common/shaders/screens/convolution-pyramid/downscale.frag