feature/imgui-sdl
points-test
Last change
on this file since 07ed460 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
|
Rev | Line | |
---|
[485424b] | 1 | #version 410
|
---|
| 2 |
|
---|
| 3 | uniform sampler2D basic_texture;
|
---|
| 4 |
|
---|
| 5 | in vec2 texture_coordinates;
|
---|
| 6 |
|
---|
| 7 | out vec4 frag_color;
|
---|
| 8 |
|
---|
| 9 | void main() {
|
---|
| 10 | vec4 texel = texture(basic_texture, texture_coordinates);
|
---|
| 11 | frag_color = texel;
|
---|
| 12 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.