summaryrefslogtreecommitdiff
path: root/game/scenary/foliage.h
Commit message (Collapse)AuthorAge
* Update stencils and billboards less oftenDan Goodliffe6 days
| | | | | | | No need to update these every frame when little of nothing has changed. Instead, track the angle previously rendered and updated only when the new angle has diverged sufficiently from this. Larger updates update more frequently.
* Calculate an appropriate billboardSize and useMeshClipDistDan Goodliffe7 days
| | | | Removes hard coded arbitrary numbers for 256px sq and 140m.
* Billboard foliageDan Goodliffe9 days
| | | | | | Partition the instances by within/without the view frustum, then by proximity to the view point and within/without the sunlight shadow frustum. Use billboards for far away/out of view instances.
* Add Asset interface to create an arbitrarily placed instanceDan Goodliffe2025-04-07
| | | | | InstanceProxy is returned out via a std::any containing a std::shared_ptr because any can only contain copyable things.
* Pass a Frustum to shadow renderersDan Goodliffe2025-03-11
| | | | The frustum might not be correct at this stage.
* Pass frustum into render functionsDan Goodliffe2025-03-07
| | | | Support for culling objects outside the view frustum
* Include foliage yaw rotation in vertex, pass through instead of whole model ↵Dan Goodliffe2024-10-10
| | | | rotation matrix
* Add a foliage vertex array for just the location dataDan Goodliffe2024-08-26
|
* Update asset stencils from shadow mapperDan Goodliffe2024-08-18
|
* Initial commit of basic shadow depth map creationDan Goodliffe2024-08-10
|
* Apply StdTypeDefs for TextureDan Goodliffe2024-08-10
|
* We only need 3x3 matrix for model rotation specDan Goodliffe2024-01-13
|
* Model positions as integersDan Goodliffe2023-11-25
| | | | | Introduces test failure in arcs due to rounding, but I don't want to create a complicated fix as link positions are still floats and hopefully that'll go away... somehow
* Send position and rotation matrix to GPU separatelyDan Goodliffe2023-11-13
|
* Switch to render trees in bulk through foliage asset renderingDan Goodliffe2023-04-20
|
* Add missing forward declarationDan Goodliffe2023-04-13
|
* Add the plant/foliage game item conceptsDan Goodliffe2023-04-10