VMTK
position_is_color.vert File Reference

The color of the vertex is computed on the basis of its coordinates. More...

Go to the source code of this file.

Namespaces

 GLSL
 

Functions

 layout (location=0) in vec4 position
 
void main (void)
 Main function.
 

Variables

out vec4 vColor
 
uniform vec4 color
 
uniform mat4 mvp_matrix
 
uniform vec4 scaleFactors
 

Detailed Description

The color of the vertex is computed on the basis of its coordinates.

Author
Wu Shin-Ting
Date
January 2015

Definition in file position_is_color.vert.

Variable Documentation

◆ vColor

out vec4 vColor

color (R,G,B,A) to be passed to position_is_color.fs

Definition at line 12 of file position_is_color.vert.