source: opengl-game/texture.frag@ 485424b

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

Add support for loading and applying texture and add a square to the scene with a demo texture

  • Property mode set to 100644
File size: 198 bytes
Line 
1#version 410
2
3uniform sampler2D basic_texture;
4
5in vec2 texture_coordinates;
6
7out vec4 frag_color;
8
9void main() {
10 vec4 texel = texture(basic_texture, texture_coordinates);
11 frag_color = texel;
12}
Note: See TracBrowser for help on using the repository browser.