|
Last change
on this file was 2ce5154, checked in by dportnoy <dmp1488@…>, 12 years ago |
|
new OpenGL program added, that might replace the client's 2D graphics someday
|
-
Property mode
set to
100644
|
|
File size:
275 bytes
|
| Line | |
|---|
| 1 | #version 330 core
|
|---|
| 2 |
|
|---|
| 3 | // Interpolated values from the vertex shaders
|
|---|
| 4 | in vec3 fragmentColor;
|
|---|
| 5 |
|
|---|
| 6 | // Ouput data
|
|---|
| 7 | out vec3 color;
|
|---|
| 8 |
|
|---|
| 9 | void main()
|
|---|
| 10 | {
|
|---|
| 11 | // Output color = color specified in the vertex shader,
|
|---|
| 12 | // interpolated between all 3 surrounding vertices
|
|---|
| 13 | color = fragmentColor;
|
|---|
| 14 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.