source: opengl-game/shaders/ColorFragmentShader.fragmentshader@ 11a48af

feature/imgui-sdl points-test
Last change on this file since 11a48af was 8a6d19d, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 7 years ago

Implement movement in a basic 3D scene and add some examples from the new OpenGL tutorials site

  • Property mode set to 100644
File size: 285 bytes
Line 
1#version 330 core
2
3// Interpolated values from the vertex shaders
4in vec3 fragmentColor;
5
6// Ouput data
7out vec3 color;
8
9void main(){
10
11 // Output color = color specified in the vertex shader,
12 // interpolated between all 3 surrounding vertices
13 color = fragmentColor;
14
15}
Note: See TracBrowser for help on using the repository browser.