summaryrefslogtreecommitdiff
path: root/gfx
Commit message (Collapse)AuthorAge
* 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
|
* 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
|
* Calculate and store the extents of a meshDan Goodliffe2024-08-10
|
* Initial commit of basic shadow depth map creationDan Goodliffe2024-08-10
|
* 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
|
* Apply StdTypeDefs for TextureDan 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
|
* Psycho-rebased branch imgui on top of mainDan Goodliffe2024-07-02
|\
| * First cut reshuffling app/window/gl/render bitsDan Goodliffe2024-06-15
| |
* | Maintain a reverse index in instance verticesDan Goodliffe2024-06-30
| | | | | | | | Removes need to search unused and/or index when moving/adding things
* | Implement partition on InstanceVerticesDan Goodliffe2024-06-29
| |
* | Tidy InstanceProxyDan Goodliffe2024-06-29
| |
* | Allow passing start index for instanced drawDan Goodliffe2024-06-28
| | | | | | | | First stage of culling support
* | Remove some unnecessary includesDan Goodliffe2024-06-28
| |
* | Build stb_image impl as a thirdparty libDan Goodliffe2024-06-25
|/
* Tidy many stringy messes with std::formatDan Goodliffe2024-06-04
|
* Reformat with new clang-formatDan Goodliffe2024-06-01
|
* Custom vertex, vertex shader and fragment shader for landmassDan Goodliffe2024-04-16
| | | | Handles global position type, colourBias for surface types
* Fix water texture wrapper in light of large position valuesDan Goodliffe2024-04-07
|
* Stripped down water vertex and simplified shadersDan Goodliffe2024-04-07
|
* Simplify vector addition/subtraction with differnt typesDan Goodliffe2024-02-24
| | | | | Automatically applies correct rounding with float to int operations, adjusts test expectations accordingly.
* Adjust light view projection matrix upfrontDan Goodliffe2024-01-30
| | | | Saves doing it per pixel, per region later
* Remove the complications from previously storing several shadow maps in the ↵Dan Goodliffe2024-01-30
| | | | texture
* Set shadow program uniforms all in one function, merge setting of view ↵Dan Goodliffe2024-01-29
| | | | projections
* Merge common parts of shadow programs into a base classDan Goodliffe2024-01-29
|
* Geometry shader for single pass shadow mapsDan Goodliffe2024-01-28
| | | | | | | 2D array texture, 4 levels, geometry shader outputs to each layer for a specific band, single scene rendering. Pending massive tidy up.
* Set light view point uniform onceDan Goodliffe2024-01-27
| | | | Not once per shadow pass
* Remove the static texture cacheDan Goodliffe2024-01-25
| | | | | Static variables persist too long, destruction is unmanaged and occurs after the gl context is gone.
* Add traits helpers for glTexParameter functionsDan Goodliffe2024-01-25
|
* Single list of all shader programsDan Goodliffe2024-01-24
| | | | Pushes common stuff through a helper function
* Fix network population of position in gBufferDan Goodliffe2024-01-23
| | | | Adds some rails to the basic test highlighting broken shadows
* Bind the network profile in as uniformsDan Goodliffe2024-01-22
| | | | Makes the network shaders generic to network type
* Dynamic number of segments into curve renderDan Goodliffe2024-01-21
| | | | | Simpler formula than the old one, neither scientific, needs to tests to demonstrate a decent result for whatever formula we use.
* Use symbol GL_MAX_GEOMETRY_OUTPUT_VERTICES to lookup the implementation ↵Dan Goodliffe2024-01-21
| | | | limit at runtime
* Replace tokens found with values from getIntegervDan Goodliffe2024-01-21
|
* Look for and replace GL_XXX with fixed stringDan Goodliffe2024-01-21
|
* String view/constexpr Shader instancesDan Goodliffe2024-01-21
| | | | Gonna need more constexpr stuff and strstr/strlen aren't that
* Pass curve link radius, no recalculate, its constantDan Goodliffe2024-01-20
|