Changeset 914bb99 in opengl-game for vulkan-game.hpp
- Timestamp:
- Apr 9, 2021, 3:26:38 PM (3 years ago)
- Branches:
- feature/imgui-sdl
- Children:
- a00eb06
- Parents:
- 5049354
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.hpp
r5049354 r914bb99 212 212 213 213 class VulkanGame { 214 214 215 public: 215 216 … … 558 559 } 559 560 561 // This function sets all the normals for a face to be parallel 562 // This is good for models that should have distinct faces, but bad for models that should appear smooth 563 // Maybe add an option to set all copies of a point to have the same normal and have the direction of 564 // that normal be the weighted average of all the faces it is a part of, where the weight from each face 565 // is its surface area. 566 567 // TODO: Since the current approach to normal calculation basicaly makes indexed drawing useless, see if it's 568 // feasible to automatically enable/disable indexed drawing based on which approach is used 560 569 template<class VertexType> 561 570 vector<VertexType> VulkanGame::addVertexNormals(vector<VertexType> vertices) {
Note:
See TracChangeset
for help on using the changeset viewer.