How to set shader constants for GUI? (SOLVED)

The “varying” means it is a variable you declare in the vertex shader, that is then interpolated automatically for each pixel when rasterizing a triangle, and it is then available for you in the fragment shader.

https://www.opengl.org/sdk/docs/tutorials/ClockworkCoders/varying.php

3 Likes