summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders
Commit message (Collapse)AuthorAge
* 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
* 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
|
* Render rail network using new shadersDan Goodliffe2024-01-20
| | | | Non-functional, totally unimplemented at this stage
* We only need 3x3 matrix for model rotation specDan Goodliffe2024-01-13
|
* Update point light shaders for instancingDan Goodliffe2024-01-13
|
* Fix order or multiple to address reversed rotationDan Goodliffe2024-01-12
|
* Full implementation passing through light defs from vertex dataDan Goodliffe2024-01-11
| | | | | Note: there is a bug where the light position/direction are rotated backwards to the model even though its using the model's rotation matrix... no idea why/how.
* Initial commit with working light instancingDan Goodliffe2024-01-10
|
* Simplify and 'fix' the wave cycleDan Goodliffe2024-01-01
|
* Run shadow mapper in camera relative spaceDan Goodliffe2023-12-17
|
* Fix output of position data to include model positionDan Goodliffe2023-12-17
|
* Use 32bit integer texture for position render dataDan Goodliffe2023-12-17
|
* Shader viewPoint now an integerDan Goodliffe2023-12-03
|
* 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
* Switch to millimeters for spatial unitsDan Goodliffe2023-11-15
| | | | | | Mostly a case of changing far too many magic numbers, something else to fix I guess. I probably missed something. Also there's some hackery when loading 3D models, which are still assumed to be in metres.
* Send position and rotation matrix to GPU separatelyDan Goodliffe2023-11-13
|
* Lookup material details once in the vertex shaderDan Goodliffe2023-04-27
| | | | ... instead of per texel in the fragment shader
* Point shaders (shadows) can all share the same implementation now in a ↵Dan Goodliffe2023-04-26
| | | | | | single place They all just get `model` from a different place
* Point shaders can all share the same implementation now in a single placeDan Goodliffe2023-04-26
| | | | They all just get `model` from a different place
* Pop and complete instanced shadow supportDan Goodliffe2023-04-26
|
* Fix location of model matrix in vertex shaderDan Goodliffe2023-04-18
|
* Fix up the way spotlight shader worksDan Goodliffe2023-04-17
| | | | | Was mostly through lack of understanding and coincidences. Position is now the only vertex data, direction is moved to a uniform. Instancing will address this by making everything instance data.
* Add the dynamicPoint shader for instancingDan Goodliffe2023-04-15
| | | | Same as dynamicPoint, but the model matrix is a vertex input
* Rename lots of shader filesDan Goodliffe2023-04-15
| | | | Names and paths still not perfect, but better and the weird name missuse is gone
* Handle different mapmodes in basic shaderDan Goodliffe2023-04-14
|
* Rename clear to opaque as its 1 for solidDan Goodliffe2023-04-13
|
* Adjust gl_FragDepth according to texel opacityDan Goodliffe2023-04-13
|
* Update shaders to use material to conditionally lookup sub-texture in the atlasDan Goodliffe2023-04-13
|
* Fix submitting of integer values via vertex arraysDan Goodliffe2023-04-13
|
* Move the vertex/fragment shader interface for materials into an includeDan Goodliffe2023-04-11
|
* Move lots of common glsl interface to include filesDan Goodliffe2023-04-11
|
* Basic fragment ahader should use final colour to determine clear flagDan Goodliffe2023-03-14
|
* Support for model colours mixed with texturesDan Goodliffe2023-02-24
|
* Add rendering support for spot lightsDan Goodliffe2023-01-05
|
* Generate 4 bands of shadow mapsDan Goodliffe2022-12-28
|
* Initial support for multiple shadow maps in the same textureDan Goodliffe2022-12-28
|
* First cut of view scope shadow mapper viewDan Goodliffe2022-12-18
|
* Tidy upDan Goodliffe2022-12-06
|
* Do not unilluminate the back of objectsDan Goodliffe2022-12-04
|
* Generate and use a shadow mapDan Goodliffe2022-12-04
| | | | | Generated when the directional light is specified in the environment call, passed to the directional light shader pass to conditionally illuminate each pixel.
* Fixed point shadow shader doesn't need normal/texture dataDan Goodliffe2022-12-04
|
* Don't actually need to define an empty fragment shaderDan Goodliffe2022-12-04
|
* Initial commit of the shadow map generator and shadows render interfaceDan Goodliffe2022-12-03
| | | | | Lots of hard coding, buggy in places, far from great, but the basics work.
* Check error state during setup, set OpenGL version to 3.3 coreDan Goodliffe2022-12-03
| | | | Updates all shaders to 330 core too.
* Change pointlight render area definition to a cubeDan Goodliffe2022-11-27
|
* Add rendering support for point lightsDan Goodliffe2022-11-23
|