OpenGL fragment shader inputs

From GPWiki
Jump to: navigation, search

A OpenGL Shading Language (GLSL) fragment shader does not receive inputs through its main function. Instead, it gets input through predefined variables that it can access as though they were global variables

Special Output Variables

These variables are read and writeable.

Special Input Variables

These variables are read only.

Varying Outputs

These variables will have been interpolated. These variables are read only.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox