Upscale fragment shader.
More...
|
|
in vec2 | uv |
| | UV coordinates.
|
| |
|
uniform uniform float | h1 [5] |
| | h1 filter parameters.
|
| |
|
uniform float | g [3] |
| | g filter parameters.
|
| |
|
uniform float | h2 |
| | h2 scaling parameter.
|
| |
|
out vec4 | fragColor |
| | Color.
|
| |
◆ isOutside()
| bool GPUShaders::Frag::Upscale::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::Upscale::main |
( |
| ) |
|
|
inline |
Combine previous level filtered with h2 (applying a 0-filled upscaling) and the current level filtered with g.
The documentation for this class was generated from the following file:
- resources/common/shaders/screens/convolution-pyramid/upscale.frag