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

Laplacian fragment shader. More...

Public Member Functions

bool isOutside (vec2 pos)
 
void main ()
 

Public Attributes

in vec2 uv
 UV coordinates.
 
uniform uniform int scale
 The downscaling applied to the input image.
 
out vec4 fragColor
 Color.
 

Detailed Description

Laplacian fragment shader.

See also
GPUShaders::Common::Samplers

Member Function Documentation

◆ isOutside()

bool GPUShaders::Frag::Laplacian::isOutside ( vec2  pos)
inline

Denotes if UV coordinates falls outside an image.

Parameters
posthe UV coordinates
Returns
true if the UV are outside of the image

◆ main()

void GPUShaders::Frag::Laplacian::main ( )
inline

Compute the Laplacian field of an input RGB image, adding a 1px black border around it before computing the gradients and divergence.


The documentation for this class was generated from the following file: