Flood fill fragment shader.
More...
|
|
in vec2 | uv |
| | UV coordinates.
|
| |
|
uniform uniform int | stepDist |
| | The distance between samples.
|
| |
|
out uvec2 | fragCoords |
| | Closest seed coordinates.
|
| |
Flood fill fragment shader.
- See also
- GPUShaders::Common::Samplers
◆ isOutside()
| bool GPUShaders::Frag::Flood_fill::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::Flood_fill::main |
( |
| ) |
|
|
inline |
Look at the closest seed for a set of neighbours, and keep the closest one for the current pixel.
The documentation for this class was generated from the following file:
- resources/common/shaders/screens/floodfill/flood-fill.frag