Changeset 785333b in opengl-game for shaders


Ignore:
Timestamp:
Dec 5, 2019, 4:08:17 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
2b40f48
Parents:
055750a
Message:

Setup debug environment for ship shader lighting

Location:
shaders
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • shaders/ship.frag

    r055750a r785333b  
    4343   vec3 Is = Ls * Ks * specular_factor;
    4444
    45    outColor = vec4(Is + Id + Ia, 1.0);
     45   //outColor = vec4(Is + Id + Ia, 1.0);
     46   outColor = vec4(color, 1.0);
    4647}
  • shaders/ship.vert

    r055750a r785333b  
    4242   light_position_eye = vec3(ubo.view * vec4(light_position_world, 1.0));
    4343
    44    gl_Position = ubo.proj * vec4(position_eye, 1.0);
     44   //gl_Position = ubo.proj * vec4(position_eye, 1.0);
     45   gl_Position = vec4(vertex_position, 1.0);
    4546}
Note: See TracChangeset for help on using the changeset viewer.