Changeset 9f9f9a7 in opengl-game for laser.vert


Ignore:
Timestamp:
Jul 17, 2018, 3:21:12 AM (6 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
fd6f465
Parents:
6877ef3
Message:

Improve the laser rendering algorithm by using a translucent white texture that gets blended with am arbitrary color.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • laser.vert

    r6877ef3 r9f9f9a7  
    44
    55layout(location = 0) in vec3 vertex_position;
    6 layout(location = 1) in vec3 vertex_color;
     6layout(location = 1) in vec2 vt;
    77
    8 out vec3 position_eye, color;
     8out vec2 texture_coordinates;
     9out vec3 position_eye;
    910
    1011void main() {
    1112  position_eye = vec3(view * vec4(vertex_position, 1.0));
    12   color = vertex_color;
     13  texture_coordinates = vt;
    1314
    1415  gl_Position = proj * vec4(position_eye, 1.0);
Note: See TracChangeset for help on using the changeset viewer.