x2048
0f25fa7af6
Add API to control shadow intensity from the game/mod ( #11944 )
...
* Also Disable shadows when sun/moon is hidden. Fixes #11972 .
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 ( #11516 )
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 ( #11244 )
...
Co-authored-by: x2048 <codeforsmile@gmail.com>
2021-06-06 18:51:21 +02:00
Vitaliy
03540e7140
Fix GLES shader support after #9247 ( #10727 )
2020-12-22 14:53:52 +01:00
Vitaliy
ccbf8029ea
Cleanup shader generation code ( #10663 )
...
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 ( #9247 )
...
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) ( #10506 )
...
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 ( #10313 )
...
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 ( #10036 )
...
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 ( #9969 )
...
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 ( #9521 )
...
fixes #9301
2020-04-06 16:06:40 +02:00
Danila Shutov
6958071f49
Basic model shading ( #9374 )
2020-02-16 20:37:28 +01:00