Changeset 6385d0f in opengl-game for shaders/ship.frag


Ignore:
Timestamp:
Apr 17, 2020, 3:09:05 AM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
4994692
Parents:
a52ba87
Message:

Change all shaders to have 3-space indentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • shaders/ship.frag

    ra52ba87 r6385d0f  
    3535   vec3 Id = Ld * Kd * dot_prod;
    3636
    37   vec3 direction_to_light2_eye = normalize(light2_position_eye - position_eye);
    38   float dot_prod2 = max(dot(direction_to_light2_eye, normal_eye), 0.0);
     37   vec3 direction_to_light2_eye = normalize(light2_position_eye - position_eye);
     38   float dot_prod2 = max(dot(direction_to_light2_eye, normal_eye), 0.0);
    3939
    40   // diffuse intensity
    41   vec3 Id2 = Ld * Kd * dot_prod2;
     40   // diffuse intensity
     41   vec3 Id2 = Ld * Kd * dot_prod2;
    4242
    4343   vec3 surface_to_viewer_eye = normalize(-position_eye);
Note: See TracChangeset for help on using the changeset viewer.