Changeset 6385d0f in opengl-game for shaders/ship.frag
- Timestamp:
- Apr 17, 2020, 3:09:05 AM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 4994692
- Parents:
- a52ba87
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
shaders/ship.frag
ra52ba87 r6385d0f 35 35 vec3 Id = Ld * Kd * dot_prod; 36 36 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); 39 39 40 // diffuse intensity41 vec3 Id2 = Ld * Kd * dot_prod2;40 // diffuse intensity 41 vec3 Id2 = Ld * Kd * dot_prod2; 42 42 43 43 vec3 surface_to_viewer_eye = normalize(-position_eye);
Note:
See TracChangeset
for help on using the changeset viewer.