Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Templated BufferedLocation and single buffer storage for RVC locations | Dan Goodliffe | 2023-05-06 |
| | |||
* | Refactor InstanceVertices in terms of glContainer | Dan Goodliffe | 2023-05-01 |
| | |||
* | Don't explictly call destructor of contained element | Dan Goodliffe | 2023-05-01 |
| | |||
* | Add the pack container | Dan Goodliffe | 2023-05-01 |
| | | | | Keeps its elements densely packed together without any interest in order | ||
* | Add method to get GL buffer name of glContainer | Dan Goodliffe | 2023-05-01 |
| | |||
* | Add missing test over iterator comparison | Dan Goodliffe | 2023-05-01 |
| | |||
* | glContainer should at least double in capacity as required | Dan Goodliffe | 2023-05-01 |
| | |||
* | Extend glContainer with most of the interface expected of an STL container | Dan Goodliffe | 2023-05-01 |
| | |||
* | Initial commit of glContainer | Dan Goodliffe | 2023-04-30 |
| | | | | A std::vector like container backed by an OpenGL buffer. | ||
* | Rename strings.h to something that won't conflict with a system header | Dan Goodliffe | 2023-04-30 |
| | |||
* | Reformat with new clang-format 16 | Dan Goodliffe | 2023-04-29 |
| | |||
* | Drop .hpp for header only things | Dan Goodliffe | 2023-04-29 |
| | | | | Half of them acquired a .cpp part anyway | ||
* | Dunno how, but some DOS new lines got in here! | Dan Goodliffe | 2023-04-29 |
| | |||
* | Lookup material details once in the vertex shader | Dan Goodliffe | 2023-04-27 |
| | | | | ... instead of per texel in the fragment shader | ||
* | Merge branch 'instancing-pt2' | Dan Goodliffe | 2023-04-27 |
|\ | |||
| * | Revert "Export mesh size and primitive type" | Dan Goodliffe | 2023-04-26 |
| | | | | | | | | This reverts commit f3343e1cc8a56f039888d4d375a6d5a088a68494. | ||
| * | Draw rail vehicle classes and foliage with new mesh instance helper | Dan Goodliffe | 2023-04-26 |
| | | |||
| * | Add Mesh helper for drawing instances | Dan Goodliffe | 2023-04-26 |
| | | | | | | | | Assumes the supplied VAO was created and configured for the mesh it's passed back to. | ||
| * | Point shaders (shadows) can all share the same implementation now in a ↵ | Dan Goodliffe | 2023-04-26 |
| | | | | | | | | | | | | single place They all just get `model` from a different place | ||
| * | Point shaders can all share the same implementation now in a single place | Dan Goodliffe | 2023-04-26 |
| | | | | | | | | They all just get `model` from a different place | ||
| * | Fudge RV bogey position the same as we do the body in test-render | Dan Goodliffe | 2023-04-26 |
| | | |||
| * | Pop and complete instanced shadow support | Dan Goodliffe | 2023-04-26 |
| | | |||
| * | Handle rendering of RailVehicles through RailVehicleClass instancing | Dan Goodliffe | 2023-04-23 |
| | | | | | | | | | | | | | | Trains no longer need rendering as their parts are all RVC assets and that just works now. This commit creates some irritating duplication in RVC wrt body/2 bogies all of which are stored separately, but function in exactly the same way. This breaks RV shadows as we have no instancing shadow shaders yet. | ||
| * | Add BufferedLocation | Dan Goodliffe | 2023-04-23 |
| | | | | | | | | | | Wraps Location, storing a pre-computed mat4 transformation of the position/rotation in a VBO handled by InstanceVertices. | ||
| * | Use Location::getTransform in Plant instead of duplicating | Dan Goodliffe | 2023-04-23 |
| | | |||
| * | Add getTransform to Location; wraps the standard mat4 calculations | Dan Goodliffe | 2023-04-23 |
| | | |||
| * | Clear world objects explicitly | Dan Goodliffe | 2023-04-23 |
| | | | | | | | | Otherwise the fail to remove themselves from the VBO after the GL context is destroyed. | ||
| * | Assert the buffer is actually mapped | Dan Goodliffe | 2023-04-23 |
| | | | | | | | | Will fail if the context is deleted. We shouldn't trigger that, but we do right now. | ||
* | | Merge remote-tracking branch 'origin/assimp-normals' | Dan Goodliffe | 2023-04-25 |
|\ \ | |||
| * | | Clear world objects explicitly | Dan Goodliffe | 2023-04-25 |
| | | | | | | | | | | | | Otherwise the fail to remove themselves from the VBO after the GL context is destroyed. | ||
| * | | Set vertex normals from AssImp data if available | Dan Goodliffe | 2023-04-25 |
| | | | |||
| * | | Don't update face/vertex normals if normals were provided, simply use them as is | Dan Goodliffe | 2023-04-25 |
| | | | |||
| * | | Allow setting a flag to say (vertex) normals have been provided | Dan Goodliffe | 2023-04-25 |
|/ / | |||
* / | Remove duplicate Tree-01-1 definition | Dan Goodliffe | 2023-04-25 |
|/ | |||
* | Merge branch 'instancing' | Dan Goodliffe | 2023-04-22 |
|\ | |||
| * | Keep the instance unused vector sorted and binary search it | Dan Goodliffe | 2023-04-22 |
| | | |||
| * | Don't fill the instances unused vector unnecessarily | Dan Goodliffe | 2023-04-22 |
| | | |||
| * | Test instancing automatic unmap when count is called, add some nodiscard | Dan Goodliffe | 2023-04-22 |
| | | |||
| * | Streamline the instancing maintenance | Dan Goodliffe | 2023-04-22 |
| | | |||
| * | Fix the instancing maintenance | Dan Goodliffe | 2023-04-22 |
| | | |||
| * | Instances buffer data needs to be unmapped before use | Dan Goodliffe | 2023-04-21 |
| | | | | | | | | | | Here we change quite a bit to support mapping and unmapping the buffer as required. The instance/free referencing is still broken though. We add several instances of tree in the render. | ||
| * | Switch to render trees in bulk through foliage asset rendering | Dan Goodliffe | 2023-04-20 |
| | | |||
| * | Expose bufferName and count from InstanceVertices | Dan Goodliffe | 2023-04-20 |
| | | |||
| * | Support setting vertex attrib divisor | Dan Goodliffe | 2023-04-19 |
| | | |||
| * | Enable all vertex array attribs configured by vertexAttribFunc | Dan Goodliffe | 2023-04-19 |
| | | |||
| * | Persist vertexArrayId across multiple calls | Dan Goodliffe | 2023-04-19 |
| | | | | | | | | Allows chaining together to build VAO from multiple buffers | ||
| * | Add basic instanced shader to those which get the viewProjection configured | Dan Goodliffe | 2023-04-19 |
| | | |||
| * | Fix type of basic instanced shader | Dan Goodliffe | 2023-04-19 |
| | | | | | | | | | | It's now AbsolutePosProgram, which is kind of right, in that it takes no location data via uniform, it's all in the vertex data. | ||
| * | Export mesh size and primitive type | Dan Goodliffe | 2023-04-19 |
| | | |||
| * | Fixup vertexAttribFunc for matrices | Dan Goodliffe | 2023-04-19 |
| | |