aboutsummaryrefslogtreecommitdiff
path: root/client/shaders/object_shader/opengl_vertex.glsl
Commit message (Collapse)AuthorAge
* Implement shadow offsets for the new SM distortion function (#12191)x20482022-04-14
| | | | | | | | * Move shadow position calculation to vertex shaders * Animate entire scene before rendering shadows to prevent lagging of shadows * Remove unnecessary use of PolygonOffsetFactor * Apply normal offset to both nodes and objects * Rename getPerspectiveFactor -> applyPerspectiveDistortion * Remove perspective distortion from fragment shaders
* Tune shadow perspective distortion (#12146)x20482022-03-31
| | | | | * Pass perspective distortion parameters as uniforms * Set all perspective bias parameters via ShadowRenderer * Recalibrate perspective distortion and shadow range to render less shadow geometry with the same quality and observed shadow distance
* Add API to control shadow intensity from the game/mod (#11944)x20482022-03-26
| | | * Also Disable shadows when sun/moon is hidden. Fixes #11972.
* Correct normal bias for entitiesDmitry Kostenko2022-03-07
| | | | | | Remove use of magic constants. Apply cameraOffset Calculate distance projected on SM plane
* Change normal bias for entities to avoid shadow acneDmitry Kostenko2022-03-07
|
* Improve lighting of entities.Dmitry Kostenko2022-03-07
| | | | | Pass correct natural & artificial light to the shaders Use natural/artificial light ratio for correct rendering of shadows
* Copy shadow mapping shader from nodes to objectsDmitry Kostenko2022-03-07
|
* Shadow mapping render pass (#11244)Liso2021-06-06
| | | Co-authored-by: x2048 <codeforsmile@gmail.com>
* Fix swapped vertex colors on GLES2sfan52021-05-11
|
* Fix GLES shader support after #9247 (#10727)Vitaliy2020-12-22
|
* Fix MSAA stripes (#9247)HybridDog2020-12-04
| | | | | This only works when shaders are enabled. The centroid varying avoids that the textures (which repeat themselves out of bounds) are sampled out of bounds in MSAA. If MSAA (called FSAA in minetest) is disabled, the centroid keyword does nothing.
* Shaders for Android (GLES 2) (#10506)Vitaliy2020-10-25
| | | | | Shader support for OpenGL ES 2 devices (Android) Co-authored-by: sfan5 <sfan5@live.de>
* Remove all bump mapping and parallax occlusion related code.Lars2020-10-17
|
* Make shading of CAOs optional (#10033)Danila Shutov2020-06-16
|
* Fix broken coloring of wielditems (#9969)Danila Shutov2020-06-09
| | | Fixes a regression that appeared in 5.3.0-dev.
* Transform texture UVs with provided tex. matrix (#9515)Danila Shutov2020-03-16
| | | fixes #9481
* Basic model shading (#9374)Danila Shutov2020-02-16