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

Downscale fragment shader. More...

Public Member Functions

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

Public Attributes

in vec2 uv
 UV coordinates.
 
uniform uniform out vec4 fragColor
 Color.
 
uniform uniform float h1 [5]
 h1 filter parameters.
 

Detailed Description

Downscale fragment shader.

See also
GPUShaders::Common::Samplers

Member Function Documentation

◆ isOutside()

bool GPUShaders::Frag::Downscale::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::Downscale::main ( )
inline

Apply the h1 filter and downscale the input data by a factor of 2.


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