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

Upscale fragment shader. More...

Public Member Functions

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

Public Attributes

in vec2 uv
 UV coordinates.
 
uniform uniform float h1 [5]
 h1 filter parameters.
 
uniform float g [3]
 g filter parameters.
 
uniform float h2
 h2 scaling parameter.
 
out vec4 fragColor
 Color.
 

Detailed Description

Upscale fragment shader.

See also
GPUShaders::Common::Samplers

Member Function Documentation

◆ isOutside()

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

Combine previous level filtered with h2 (applying a 0-filled upscaling) and the current level filtered with g.


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