Changeset 6d95ade in opengl-game


Ignore:
Timestamp:
Apr 17, 2020, 2:48:42 AM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
0ecab17
Parents:
bf4744d
Message:

In OpenGLRef, stop passing position_eye from the laser vertex shader to the fragment shader since the fragment shader never uses it

Location:
gl-shaders
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gl-shaders/laser.frag

    rbf4744d r6d95ade  
    1313
    1414in vec2 texture_coordinates;
    15 in vec3 position_eye;
    1615
    1716out vec4 frag_color;
  • gl-shaders/laser.vert

    rbf4744d r6d95ade  
    1414
    1515out vec2 texture_coordinates;
    16 out vec3 position_eye;
    1716
    1817void main() {
    19   position_eye = vec3(view * model_mats[ubo_index] * vec4(vertex_position, 1.0));
     18  vec3 position_eye = vec3(view * model_mats[ubo_index] * vec4(vertex_position, 1.0));
     19
    2020  texture_coordinates = vt;
    2121
Note: See TracChangeset for help on using the changeset viewer.