feature/imgui-sdl
points-test
Last change
on this file since 9f9f9a7 was 9f9f9a7, checked in by Dmitry Portnoy <dmp1488@…>, 6 years ago |
Improve the laser rendering algorithm by using a translucent white texture that gets blended with am arbitrary color.
|
-
Property mode
set to
100644
|
File size:
324 bytes
|
Line | |
---|
1 | #version 410
|
---|
2 |
|
---|
3 | uniform mat4 view, proj;
|
---|
4 |
|
---|
5 | layout(location = 0) in vec3 vertex_position;
|
---|
6 | layout(location = 1) in vec2 vt;
|
---|
7 |
|
---|
8 | out vec2 texture_coordinates;
|
---|
9 | out vec3 position_eye;
|
---|
10 |
|
---|
11 | void main() {
|
---|
12 | position_eye = vec3(view * vec4(vertex_position, 1.0));
|
---|
13 | texture_coordinates = vt;
|
---|
14 |
|
---|
15 | gl_Position = proj * vec4(position_eye, 1.0);
|
---|
16 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.