aboutsummaryrefslogtreecommitdiff
path: root/client/shaders/object_shader/opengl_fragment.glsl
AgeCommit message (Collapse)Author
2022-05-21Improve shadow filters (#12195)x2048
* Rewrite shadow filtering for the new distortion * Calculate penumbra radius using a single sample * Avoid peter-panning effect due to filtering of short shadows * Add adaptive filter quality for soft shadows * Avoid sharp shadows on surfaces without normals (e.g. plants) * Increase default and maximum soft shadow radius * Make line numbers in shader errors match the code
2022-04-14Implement shadow offsets for the new SM distortion function (#12191)x2048
* 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
2022-04-07Adjust shadowmap distortion to use entire SM texture (#12166)x2048
2022-03-31Tune shadow perspective distortion (#12146)x2048
* 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
2022-03-26Add API to control shadow intensity from the game/mod (#11944)x2048
* Also Disable shadows when sun/moon is hidden. Fixes #11972.
2022-03-07Change normal bias for entities to avoid shadow acneDmitry Kostenko
2022-03-07Remove debugging codeDmitry Kostenko
2022-03-07Ensure nightRatio is greater than zero in object shaderDmitry Kostenko
2022-03-07Fix shadow rendering with filtering disabledDmitry Kostenko
2022-03-07Improve lighting of entities.Dmitry Kostenko
Pass correct natural & artificial light to the shaders Use natural/artificial light ratio for correct rendering of shadows
2022-03-07Improve self-shadowing based on light/normal angleDmitry Kostenko
Add compatibility with colored shadows.
2022-03-07Copy shadow mapping shader from nodes to objectsDmitry Kostenko
2021-10-01Improvements to colored shadows (#11516)x2048
2021-09-17Fix GLES2 discard behaviour (texture transparency)sfan5
2021-06-06Shadow mapping render pass (#11244)Liso
Co-authored-by: x2048 <codeforsmile@gmail.com>
2020-12-22Fix GLES shader support after #9247 (#10727)Vitaliy
2020-12-19Cleanup shader generation code (#10663)Vitaliy
Shader generation is a mess. This commit cleans some parts up, including dropping remains of HLSL support which was never actually implemented.
2020-12-04Fix MSAA stripes (#9247)HybridDog
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.
2020-10-25Shaders for Android (GLES 2) (#10506)Vitaliy
Shader support for OpenGL ES 2 devices (Android) Co-authored-by: sfan5 <sfan5@live.de>
2020-10-17Remove all bump mapping and parallax occlusion related code.Lars
2020-09-14Remove "generate normal maps" feature (#10313)hecks
Erase all traces of normal "generation" from fragment shaders Remove the "feature" from the engine and default config Remove any leftover documentation of it
2020-08-25shaders: Fix transparency on GC7000L (#10036)mntmn
Workaround for the missing GL_ALPHA_TEST implementation in Mesa (etnaviv driver).
2020-06-09Fix broken coloring of wielditems (#9969)Danila Shutov
Fixes a regression that appeared in 5.3.0-dev.
2020-04-06Add tone mapping for entities (#9521)Danila Shutov
fixes #9301
2020-02-16Basic model shading (#9374)Danila Shutov