-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include "common.h" | ||
|
||
out gl_PerVertex { vec4 gl_Position; }; | ||
|
||
layout(location = POSITION) in float4 P; | ||
layout(location = COLOR0) in float4 C; | ||
|
||
layout(location = COLOR0) out float4 c0; | ||
|
||
uniform float4 tfactor; | ||
void main () | ||
{ | ||
gl_Position = mul (m_WVP, P); // xform, input in world coords | ||
c0 = tfactor*C; | ||
} |