feature/imgui-sdl
points-test
|
Last change
on this file since 0424bd8 was 8a6d19d, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 8 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:
332 bytes
|
| Rev | Line | |
|---|
| [8a6d19d] | 1 | #version 330 core
|
|---|
| 2 |
|
|---|
| 3 | // Interpolated values from the vertex shaders
|
|---|
| 4 | in vec2 UV;
|
|---|
| 5 |
|
|---|
| 6 | // Ouput data
|
|---|
| 7 | out vec3 color;
|
|---|
| 8 |
|
|---|
| 9 | // Values that stay constant for the whole mesh.
|
|---|
| 10 | uniform sampler2D myTextureSampler;
|
|---|
| 11 |
|
|---|
| 12 | void 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.