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

Passthrough shift fragment shader. More...

Public Member Functions

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

Public Attributes

in vec2 uv
 UV coordinates.
 
uniform uniform int padding
 The padding to apply.
 
out vec4 fragColor
 Color.
 

Detailed Description

Passthrough shift fragment shader.

See also
GPUShaders::Common::Samplers

Member Function Documentation

◆ isOutside()

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

Output an image translated by a fixed number of pixels on each axis. useful for padding when rendering in a larger framebuffer.


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