summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Randomise for many trees, positions, rotationsDan Goodliffe2024-10-20
|
* Move lots of maths helpers to inline, constexpr, templatesDan Goodliffe2024-10-20
| | | | Always for working with different dimensions/types
* Misc readability fixesDan Goodliffe2024-10-17
|
* Re-express viewProjections calculations as a fold expressionDan Goodliffe2024-10-17
|
* Remove magic number for stencil view anglesDan Goodliffe2024-10-17
|
* Don't assume size of stencil textureDan Goodliffe2024-10-17
|
* Texture::getSize helper can be publicDan Goodliffe2024-10-17
|
* Better shadowBands sizesDan Goodliffe2024-10-17
| | | | Still a bit arbitrary, but calculated now to scale across the required range
* Simple constexpr pow functionDan Goodliffe2024-10-17
|
* Don't dump stencil textureDan Goodliffe2024-10-10
|
* Generate stencils as views offset from light directionDan Goodliffe2024-10-10
|
* Use foliage yaw rotation to select shadow stencil layerDan Goodliffe2024-10-10
|
* Include foliage yaw rotation in vertex, pass through instead of whole model ↵Dan Goodliffe2024-10-10
| | | | rotation matrix
* Fix stencil shadow depth offsetDan Goodliffe2024-10-10
|
* Use LightDirection for calculating/passing all light dir componentsDan Goodliffe2024-10-06
|
* Add LightDirection classDan Goodliffe2024-10-05
|
* Add rotate_yp taking two separate parametersDan Goodliffe2024-10-05
|
* Psycho-rebased branch billboard-shadows on top of mainDan Goodliffe2024-09-23
|\
| * Populate all layers of shadow stencil with view from all aroundDan Goodliffe2024-09-07
| |
| * Populate all layers of the stencil textureDan Goodliffe2024-09-03
| | | | | | | | Albeit with the same projection
| * Update stencil texture to 2d arrayDan Goodliffe2024-09-02
| |
| * Update Texture::getSize and ::size to account for the third texture dimensionDan Goodliffe2024-09-02
| |
| * Add TextureDimensions typeDan Goodliffe2024-09-02
| |
| * Extend depth of shadow box 10m to allow for depth offsets and clamp stencil ↵Dan Goodliffe2024-09-01
| | | | | | | | to it
| * Use billboard shadows for foliageDan Goodliffe2024-08-28
| |
| * Initial cut of shadow map creation with support for billboard shadowsDan Goodliffe2024-08-28
| |
| * Set stencil texture min/mag filtersDan Goodliffe2024-08-26
| |
| * Add helper to test if a uniform was foundDan Goodliffe2024-08-26
| |
| * Add a foliage vertex array for just the location dataDan Goodliffe2024-08-26
| |
| * Include sizes of shadow box extents as uniforms to shadersDan Goodliffe2024-08-26
| |
| * test-render loads all assets into gameStateDan Goodliffe2024-08-26
| |
| * Persist a single ShadowStenciller within ShadowMapperDan Goodliffe2024-08-19
| |
| * Shuffle some GL state settingDan Goodliffe2024-08-19
| | | | | | | | | | Ensures the right things are set at the right times, it's more calls but its less prone to randomly getting screwed over. Also updates the comments about which phases do what.
| * Update asset stencils from shadow mapperDan Goodliffe2024-08-18
| |
| * Add updateStencil to Renderable interfaceDan Goodliffe2024-08-18
| |
| * Populate GameState::assets in appropriate testsDan Goodliffe2024-08-18
| |
| * Offset shaded position to reduce chance of self-shadowingDan Goodliffe2024-08-18
| |
| * Replace low poly plants with the double sided versionDan Goodliffe2024-08-18
| | | | | | | | Avoids culling half the trees
| * Calculate centre and size of mesh, wrap it all in a Dimensions objectDan Goodliffe2024-08-11
| |
| * Use texture alpha in shadow stencilDan Goodliffe2024-08-10
| |
| * Use mesh extents for shadow stencil extentsDan Goodliffe2024-08-10
| |
| * Calculate and store the extents of a meshDan Goodliffe2024-08-10
| |
| * Initial commit of basic shadow depth map creationDan Goodliffe2024-08-10
| |
* | Merge branch 'sunpos'Dan Goodliffe2024-09-23
|\ \
| * | Adjust light colour as sun rises/setsDan Goodliffe2024-09-22
| | | | | | | | | | | | This is a bit made-up-maths/numbers, but it looks reasonable.
| * | Calculate sunlight direction from worldTimeDan Goodliffe2024-09-22
| | |
| * | Move getSunPos to EnvironmentDan Goodliffe2024-09-20
| | |
| * | Add basic environment objectDan Goodliffe2024-09-20
| | | | | | | | | | | | Will hold world time/date, weather, location etc
| * | Update getSunPos to use a standard time_tDan Goodliffe2024-09-19
| | |
| * | Add helper to quickly parse an ISO date/timeDan Goodliffe2024-09-19
| | |