Commit Graph

29 Commits

Author SHA1 Message Date
lhofhansl
0ade097e99
Allow the server to control fog_distance and fog_start via the sky-api () 2023-06-30 19:11:17 -07:00
Thresher
180ec92ef9
Remove trailing whitespace () 2023-05-18 20:34:18 +02:00
x2048
1de8a1e962
Fix missing shadows when sun tilt is zero 2023-03-11 13:49:40 +01:00
x2048
ff6dcfea82
Implement rendering pipeline and post-processing ()
Co-authored-by: Lars Mueller <appgurulars@gmx.de>
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: lhofhansl <lhofhansl@yahoo.com>
2022-09-06 08:25:18 +02:00
x2048
dc45b85a54
Improve shadow filters ()
* 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-05-21 16:49:30 +02:00
x2048
a5d29fa1d4
Implement shadow offsets for the new SM distortion function ()
* 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-14 22:49:30 +02:00
x2048
48f7c5603e
Adjust shadowmap distortion to use entire SM texture () 2022-04-07 22:13:50 +02:00
x2048
31578303a4
Tune shadow perspective distortion ()
* 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-31 22:40:06 +02:00
x2048
0f25fa7af6
Add API to control shadow intensity from the game/mod ()
* Also Disable shadows when sun/moon is hidden. Fixes .
2022-03-26 16:58:26 +01:00
Dmitry Kostenko
25c1974e0d Change normal bias for entities to avoid shadow acne 2022-03-07 23:45:26 +01:00
Dmitry Kostenko
12896b22d8 Remove debugging code 2022-03-07 23:45:26 +01:00
Dmitry Kostenko
e531c59606 Ensure nightRatio is greater than zero in object shader 2022-03-07 23:45:26 +01:00
Dmitry Kostenko
a684a91bf5 Fix shadow rendering with filtering disabled 2022-03-07 23:45:26 +01:00
Dmitry Kostenko
54dccc480e Improve lighting of entities.
Pass correct natural & artificial light to the shaders
Use natural/artificial light ratio for correct rendering of shadows
2022-03-07 23:45:26 +01:00
Dmitry Kostenko
f2cccf8da7 Improve self-shadowing based on light/normal angle
Add compatibility with colored shadows.
2022-03-07 23:45:26 +01:00
Dmitry Kostenko
10be033791 Copy shadow mapping shader from nodes to objects 2022-03-07 23:45:26 +01:00
x2048
982e03f60d
Improvements to colored shadows () 2021-10-01 16:21:53 +02:00
sfan5
ea250ff5c5 Fix GLES2 discard behaviour (texture transparency) 2021-09-17 18:13:50 +02:00
Liso
c47313db65
Shadow mapping render pass ()
Co-authored-by: x2048 <codeforsmile@gmail.com>
2021-06-06 18:51:21 +02:00
Vitaliy
03540e7140
Fix GLES shader support after () 2020-12-22 14:53:52 +01:00
Vitaliy
ccbf8029ea
Cleanup shader generation code ()
Shader generation is a mess. This commit cleans some parts up, including dropping remains of HLSL support which was never actually implemented.
2020-12-19 20:57:10 +01:00
HybridDog
e73c5d4585
Fix MSAA stripes ()
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-12-04 20:16:12 +01:00
Vitaliy
707c8c1e95
Shaders for Android (GLES 2) ()
Shader support for OpenGL ES 2 devices (Android)

Co-authored-by: sfan5 <sfan5@live.de>
2020-10-25 18:01:03 +01:00
Lars
ed22260822 Remove all bump mapping and parallax occlusion related code. 2020-10-17 13:09:16 -07:00
hecks
fcff9f2911
Remove "generate normal maps" feature ()
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-09-14 19:27:25 +02:00
mntmn
44c98089cf
shaders: Fix transparency on GC7000L ()
Workaround for the missing GL_ALPHA_TEST implementation in Mesa (etnaviv driver).
2020-08-25 20:49:51 +02:00
Danila Shutov
fe3e69eb40
Fix broken coloring of wielditems ()
Fixes a regression that appeared in 5.3.0-dev.
2020-06-09 21:38:09 +02:00
Danila Shutov
661b4a1837
Add tone mapping for entities ()
fixes 
2020-04-06 16:06:40 +02:00
Danila Shutov
6958071f49
Basic model shading () 2020-02-16 20:37:28 +01:00