feature/imgui-sdl
points-test
Last change
on this file since eeece4e was 93baa0e, checked in by Dmitry Portnoy <dmp1488@…>, 7 years ago |
Add face culling and a model matrix that can be changed to move the scene
|
-
Property mode
set to
100644
|
File size:
234 bytes
|
Line | |
---|
1 | #version 410
|
---|
2 |
|
---|
3 | uniform mat4 model;
|
---|
4 |
|
---|
5 | layout(location = 0) in vec3 vertex_position;
|
---|
6 | layout(location = 1) in vec3 vertex_color;
|
---|
7 |
|
---|
8 | out vec3 color;
|
---|
9 |
|
---|
10 | void main() {
|
---|
11 | color = vertex_color;
|
---|
12 | gl_Position = model * vec4(vertex_position, 1.0);
|
---|
13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.