summaryrefslogtreecommitdiff
path: root/gfx/gl
Commit message (Collapse)AuthorAge
* Rebalance shadow band distributionDan Goodliffe46 hours
| | | | Extends the initial band from around 34m to around 100m.
* Initialise shadow bounding box to light view pointDan Goodliffe46 hours
| | | | Then extended to cover the view extents.
* Pass a Frustum to shadow renderersDan Goodliffe46 hours
| | | | The frustum might not be correct at this stage.
* Simplify ShadowMapper with AxisAlignedBoundingBoxDan Goodliffe46 hours
|
* Pass frustum into render functionsDan Goodliffe6 days
| | | | Support for culling objects outside the view frustum
* Move camera out of gl folder, it's not OpenGL specificDan Goodliffe7 days
|
* Have Camera keep an array of frustum plane definitionsHEADmainDan Goodliffe7 days
| | | | Based on code from https://ktstephano.github.io/rendering/stratusgfx/aabbs
* Cache the camera's view matrixDan Goodliffe11 days
|
* Improve Terrain::generateMeshes performanceDan Goodliffe2025-02-25
| | | | | Creates mesh per surface based on a single buffer of all vertices and a collection of per surfuce indices. Makes ColourBias a uniform instead of a vertex attribute.
* Add VertexArrayObject::data for an external existing bufferDan Goodliffe2025-02-25
|
* Basic soft shadowsDan Goodliffe2024-10-26
|
* Merge branch 'billboard-shadows'Dan Goodliffe2024-10-22
|\
| * 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
| |
| * Better shadowBands sizesDan Goodliffe2024-10-17
| | | | | | | | Still a bit arbitrary, but calculated now to scale across the required range
| * 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
| |
| * 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
| |
| * Extend depth of shadow box 10m to allow for depth offsets and clamp stencil ↵Dan Goodliffe2024-09-01
| | | | | | | | to it
| * 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
| |
| * Include sizes of shadow box extents as uniforms to shadersDan 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
| |
| * Offset shaded position to reduce chance of self-shadowingDan Goodliffe2024-08-18
| |
| * 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
| |
| * Initial commit of basic shadow depth map creationDan Goodliffe2024-08-10
| |
* | Bump to CTRE to v3.9.0-1-gacb2f4d to fix compilation with clang 19Dan Goodliffe2024-10-22
| | | | | | | | Swaps ctre::range to ctre::search_all
* | Offset shaded position to reduce chance of self-shadowingDan Goodliffe2024-08-18
|/
* Fix texture usage via materials in shadowsDan Goodliffe2024-08-10
| | | | | This is a mess of a commit much like the shader folder, need a better way of dealing with them.
* Pull material detail function into a common fileDan Goodliffe2024-08-10
|
* Pull material lookup functions into a common fileDan Goodliffe2024-08-10
|
* Simplify in/out in materialInterfaceDan Goodliffe2024-08-10
|
* Specific exception for shader compile errorDan Goodliffe2024-08-04
| | | | Outputs more details, including shader source
* Split CheckShaderError into shader/program versionsDan Goodliffe2024-08-03
| | | | They're similar, but need splitting for better diagnostics
* Creating a program with no shaders is not validDan Goodliffe2024-07-20
|
* Simplify setup of uniform locations and containing programsDan Goodliffe2024-07-07
|
* Add shadow shader which takes into account texture transparencyDan Goodliffe2024-07-07
|