| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
| |
* 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
|
|
|
| |
* Also Disable shadows when sun/moon is hidden. Fixes #11972.
|
|
|
|
|
|
| |
Remove use of magic constants.
Apply cameraOffset
Calculate distance projected on SM plane
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Pass correct natural & artificial light to the shaders
Use natural/artificial light ratio for correct rendering of shadows
|
|
|
|
| |
Add compatibility with colored shadows.
|
| |
|
| |
|
| |
|
|
|
| |
Co-authored-by: x2048 <codeforsmile@gmail.com>
|
| |
|
| |
|
|
|
| |
Shader generation is a mess. This commit cleans some parts up, including dropping remains of HLSL support which was never actually implemented.
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Shader support for OpenGL ES 2 devices (Android)
Co-authored-by: sfan5 <sfan5@live.de>
|
| |
|
|
|
|
|
| |
Erase all traces of normal "generation" from fragment shaders
Remove the "feature" from the engine and default config
Remove any leftover documentation of it
|
|
|
| |
Workaround for the missing GL_ALPHA_TEST implementation in Mesa (etnaviv driver).
|
| |
|
|
|
| |
Fixes a regression that appeared in 5.3.0-dev.
|
|
|
| |
fixes #9301
|
|
|
| |
fixes #9481
|
|
|