feature/imgui-sdl
points-test
Last change
on this file since baa5848 was 1a530df, checked in by Dmitry Portnoy <dmp1488@…>, 7 years ago |
Design an algorithm for rendering objects using colors or shaders and try to use a ubo for storing model matrices
|
-
Property mode
set to
100644
|
File size:
313 bytes
|
Line | |
---|
1 | #version 410
|
---|
2 |
|
---|
3 | layout (std140) uniform model_block {
|
---|
4 | mat4 M;
|
---|
5 | };
|
---|
6 |
|
---|
7 | uniform mat4 model, view, proj;
|
---|
8 |
|
---|
9 | layout(location = 0) in vec3 vertex_position;
|
---|
10 | layout(location = 1) in vec3 vertex_color;
|
---|
11 |
|
---|
12 | out vec3 color;
|
---|
13 |
|
---|
14 | void main() {
|
---|
15 | color = vertex_color;
|
---|
16 | gl_Position = proj * view * model * vec4(vertex_position, 1.0);
|
---|
17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.