Passthrough shift fragment shader.
More...
|
in vec2 | uv |
| UV coordinates.
|
|
uniform uniform int | padding |
| The padding to apply.
|
|
out vec4 | fragColor |
| Color.
|
|
Passthrough shift fragment shader.
- See also
- GPUShaders::Common::Samplers
◆ isOutside()
bool GPUShaders::Frag::Passthrough_shift::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::Passthrough_shift::main |
( |
| ) |
|
|
inline |
Output an image translated by a fixed number of pixels on each axis. useful for padding when rendering in a larger framebuffer.
The documentation for this class was generated from the following file:
- resources/common/shaders/screens/convolution-pyramid/passthrough-shift.frag