summaryrefslogtreecommitdiff
path: root/gfx/gl/shader.cpp
Commit message (Collapse)AuthorAge
* 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
* 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
* Tidy many stringy messes with std::formatDan Goodliffe2024-06-04
|
* 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
* Shaders can be deleted once attached to a programDan Goodliffe2022-11-15
|
* Restructure how shaders are worked withDan Goodliffe2022-11-03
| | | | Needs a tidy-up
* Rename Shader to SceneShaderDan Goodliffe2022-11-03
|
* Refactor to start splitting out UI componentsDan Goodliffe2021-12-13
|
* Introduce the UI shaderDan Goodliffe2021-12-12
|
* Move program handle to its own filesDan Goodliffe2021-12-12
|
* Split 3D specifics of programs out of a base classDan Goodliffe2021-12-12
|
* Move GL shared source into it's own class/fileDan Goodliffe2021-12-12
|
* glm::value_ptr is neaterDan Goodliffe2021-12-12
|
* Fix up all remaining warningsDan Goodliffe2021-11-28
|
* Enable all Jason Turner recommended warningsDan Goodliffe2021-11-26
|
* Create and use a shader program for things with absolute positionDan Goodliffe2021-03-03
| | | | Rails in this case.
* Only calculate and bind the model transform if the shader program uses itDan Goodliffe2021-03-03
|
* Replace Transform with LocationDan Goodliffe2021-03-03
| | | | Simpler, unbinds the transformation matrices for location, now done just in the shader.
* Pass lintersDan Goodliffe2021-02-20
|
* Remove now redundent Shader::Source classDan Goodliffe2021-02-20
| | | | Moves compile functionality to GLsource.
* m4 based GLSL embeddingDan Goodliffe2021-02-20
| | | | Passes a lint check, less mangling, more automation
* Pass a cppcheckDan Goodliffe2021-02-20
|
* Custom land and water shadersDan Goodliffe2021-02-20
| | | | | | | Create sandy beaches, snow topped mountains and grassy hills with a single texture, coloured according to land height by a custom shader. Also use the land mass mesh with a new water texture and a custom shader to create rather nice looking water effect with depth, waves and motion.
* Allow setting any uniform in shadersDan Goodliffe2021-02-18
| | | | Move less commonly used (lightDirection) to a named one
* Support multiple shader programs, set by modelDan Goodliffe2021-02-17
|
* Define light direction as a vectorDan Goodliffe2021-01-26
|
* Remove the weird view/model/camera connectednessDan Goodliffe2021-01-24
|
* Big tidy up of shader wrapperDan Goodliffe2021-01-24
|
* Big reshuffleDan Goodliffe2021-01-17
Fixes code quality warnings now picked up.