Skip to content

Files

Latest commit

39a611c · Jul 30, 2020

History

History
This branch is 230 commits behind patriciogonzalezvivo/thebookofshaders:master.

varying

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 30, 2020
Dec 20, 2017

Varying

Varying variable qualifier.

Example

varying vec3 position;

Description

varying variables contain data shared from a vertex shader to a fragment shader.

The variable must be written in the vertex shader and the read-only value in the fragment shader is then interpolated from the vertices which make up the fragment.

See Also

attribute, const, uniform, Chapter 03: Uniforms