Changeset 5a1ace0 in opengl-game for vulkan-game.hpp


Ignore:
Timestamp:
Feb 16, 2020, 8:18:50 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
2d87297
Parents:
4ece3bf
git-author:
Dmitry Portnoy <dmitry.portnoy@…> (02/14/20 20:41:35)
git-committer:
Dmitry Portnoy <dmitry.portnoy@…> (02/16/20 20:18:50)
Message:

In VulkanGame, add objIndex to scene objects, use it in the scene shader to index into the ssbo, and change the code that copies data to the ssbo to do so for each scene object, not just the first one

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.hpp

    r4ece3bf r5a1ace0  
    2222#endif
    2323
     24struct OverlayVertex {
     25   vec3 pos;
     26   vec2 texCoord;
     27};
     28
    2429struct ModelVertex {
    2530   vec3 pos;
    2631   vec3 color;
    2732   vec2 texCoord;
    28 };
    29 
    30 struct OverlayVertex {
    31    vec3 pos;
    32    vec2 texCoord;
     33   unsigned int objIndex;
    3334};
    3435
Note: See TracChangeset for help on using the changeset viewer.