summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Cast relative position accordingly in geometric planeDan Goodliffe2024-02-12
|
* Add stripiterDan Goodliffe2024-02-12
| | | | | A generic iterator wrapper returning a tuple of 3 references to the original values, as processed in the fashion of an OpenGL triangle strip.
* Merge branch 'glcontainer-fix'Dan Goodliffe2024-02-03
|\
| * Allow specifying a target other than array bufferDan Goodliffe2024-02-02
| | | | | | | | GL_ARRAY_BUFFER is the default. Also removes accidental use for OpenGL 4.x functions.
| * Map buffers RO if const operations, upgrade to RW as requiredDan Goodliffe2024-02-02
| |
| * Don't keep a span, create as neededDan Goodliffe2024-02-02
| | | | | | | | | | Removes the error prone issue where data/size get out of sync. Fixes overflow issues leading to memory corruption of GPU data.
| * Fix warnings in test-glContainerDan Goodliffe2024-02-02
|/ | | | Also updates static asserts to requirements
* Merge branch 'geo-shadows'Dan Goodliffe2024-01-30
|\
| * 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
* 3D relative scaling in asset factoryDan Goodliffe2024-01-27
| | | | Reduces excess vertices in cylinders
* Merge branch 'text2'Dan Goodliffe2024-01-27
|\
| * Render text in N draw callsDan Goodliffe2024-01-27
| | | | | | | | | | | | Creates a single buffer per required texture and draws the whole buffer in one go. It does introduce the use of deprecated GL_QUADS primitive, but it's the easiest way to go without needing indices, repeated vertices etc
| * Add traits vertex attrib func override for arraysDan Goodliffe2024-01-27
| | | | | | | | Address limitation on size when specifying arrays of glm::vec
| * Support constructing a glContainer from a collection of the same typeDan Goodliffe2024-01-27
| |
| * Add text to framebuffer rendering testDan Goodliffe2024-01-27
| |
| * Remove the generic cache completelyDan Goodliffe2024-01-26
| |
| * Remove the static font cacheDan Goodliffe2024-01-26
| | | | | | | | Each thing can own/share a font rendering itself
| * Always set pixel unpack alignment before generating font texture contentDan Goodliffe2024-01-26
|/
* 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
|
* Replace static_asserts with conceptsDan Goodliffe2024-01-25
|
* Define GLM_ENABLE_EXPERIMENTALDan Goodliffe2024-01-25
| | | | | GLM v1 requires this for use of experimental features which may change... We accept this for now.
* Single list of all shader programsDan Goodliffe2024-01-24
| | | | Pushes common stuff through a helper function
* Merge remote-tracking branch 'origin/instanced-networks'Dan Goodliffe2024-01-24
|\
| * 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
| * Add missing support for glUniform simple span of numbersDan Goodliffe2024-01-22
| |
| * Remove the old custom mesh per network link renderingDan Goodliffe2024-01-21
| |
| * 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
| |
| * Include ctre submoduleDan Goodliffe2024-01-21
| |
| * String view/constexpr Shader instancesDan Goodliffe2024-01-21
| | | | | | | | Gonna need more constexpr stuff and strstr/strlen aren't that
| * Fix includes in test glCtxtBhvrDan Goodliffe2024-01-21
| |
| * Pass curve link radius, no recalculate, its constantDan Goodliffe2024-01-20
| |
| * Implement basic network curve part shaderDan Goodliffe2024-01-20
| |
| * Common code between straight/curve network geometry shadersDan Goodliffe2024-01-20
| |
| * Implement complete network straight part shaderDan Goodliffe2024-01-20
| |
| * Update network with vertex arrayDan Goodliffe2024-01-20
| |
| * Render rail network using new shadersDan Goodliffe2024-01-20
| | | | | | | | Non-functional, totally unimplemented at this stage
| * Copy render vital link data to vertex bufferDan Goodliffe2024-01-20
| |
| * Add mail rail network to render test, include curvesDan Goodliffe2024-01-20
| |
| * Add rail network render testDan Goodliffe2024-01-19
|/
* Add traits wrapper for setting uniformsDan Goodliffe2024-01-14
|