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

Image display vertex shader. More...

Public Member Functions

void main ()
 

Public Attributes

in vec3 v
 Position.
 
out vec2 uv
 Texture coordinates.
 
uniform vec2 flipAxis
 Denotes if a flipping has been applied on each axis.
 
uniform vec2 angleTrig
 Applied rotation precomputed cosine and sine.
 
uniform vec2 mouseShift
 Translation.
 
uniform float screenRatio
 Screen h/v ratio.
 
uniform float imageRatio
 Image h/v ratio.
 
uniform float widthRatio
 Image/screen width ratio.
 
uniform float pixelScale
 Scaling.
 

Detailed Description

Image display vertex shader.

Member Function Documentation

◆ main()

void GPUShaders::Vert::Image_display::main ( )
inline

Generate one triangle covering the whole screen and compute UV coordinates based on scaling/position/rotation.


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