source: network-game/graphics_library/TextureFragmentShader.fragmentshader@ fccd588

Last change on this file since fccd588 was fccd588, checked in by dportnoy15 <dmitry.portnoy@…>, 6 years ago

Make the graphics library project compile successfully on a Mac

  • Property mode set to 100644
File size: 334 bytes
Line 
1#version 330 core
2
3// Interpolated values from the vertex shaders
4in vec2 UV;
5
6// Ouput data
7out vec3 color;
8
9// Values that stay constant for the whole mesh.
10uniform sampler2D myTextureSampler;
11
12void main(){
13
14 // Output color = color of the texture at the specified UV
15 color = texture( myTextureSampler, UV ).rgb;
16}
Note: See TracBrowser for help on using the repository browser.