Changeset 7c929fc in opengl-game for vulkan-game.hpp


Ignore:
Timestamp:
Dec 6, 2019, 4:21:54 AM (5 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
60578ce
Parents:
2b40f48
Message:

In VulkanGame, make lighting work correctly in the ship shader before the MVP matrices are applied

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.hpp

    r2b40f48 r7c929fc  
    204204
    205205      vec3 normal = normalize(cross(p2 - p1, p3 - p1));
    206       normal.z = -normal.z;
     206      //normal.z = -normal.z;
    207207
    208208      // Add the same normal for all 3 vertices
Note: See TracChangeset for help on using the changeset viewer.