Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
GPUShaders::Frag::Flood_fill Class Reference

Flood fill fragment shader. More...

Public Member Functions

bool isOutside (ivec2 pos, ivec2 size)
 
void main ()
 

Public Attributes

in vec2 uv
 UV coordinates.
 
uniform uniform int stepDist
 The distance between samples.
 
out uvec2 fragCoords
 Closest seed coordinates.
 

Detailed Description

Flood fill fragment shader.

See also
GPUShaders::Common::Samplers

Member Function Documentation

◆ isOutside()

bool GPUShaders::Frag::Flood_fill::isOutside ( ivec2  pos,
ivec2  size 
)
inline

Denotes if a pixel falls outside an image.

Parameters
posthe pixel position
sizethe 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: