Changeset f7d35da in opengl-game for texture.frag


Ignore:
Timestamp:
Jun 10, 2018, 9:31:48 PM (7 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
5c403fe
Parents:
0d5c100
Message:

Add a system to keep track of which keys are pressed or held down and add another light source to help illuminate the scene from different directions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • texture.frag

    r0d5c100 rf7d35da  
    2929
    3030  // diffuse intensity
    31   vec3 Id = Ls * vec3(texel) * dot_prod;
     31  vec3 Id = Ld * vec3(texel) * dot_prod;
    3232
    3333  vec3 reflection_eye = reflect(-direction_to_light_eye, normal_eye);
Note: See TracChangeset for help on using the changeset viewer.