aboutsummaryrefslogtreecommitdiff
path: root/client/shaders/nodes_shader/opengl_vertex.glsl
AgeCommit message (Collapse)Author
2022-11-09Fix typos and en_US/en_GB inconsistency in various files (#12902)Abdou-31
2022-09-06Implement rendering pipeline and post-processing (#12465)x2048
Co-authored-by: Lars Mueller <appgurulars@gmx.de> Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: lhofhansl <lhofhansl@yahoo.com>
2022-08-10Node vertex shader: Properly use the waved world position (#12665)DS
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-08Spacing fixesShadowNinja
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-07Reuse normal offset calculation for nodesDmitry Kostenko
2021-06-06Shadow mapping render pass (#11244)Liso
Co-authored-by: x2048 <codeforsmile@gmail.com>
2021-05-11Fix swapped vertex colors on GLES2sfan5
2020-12-22Fix GLES shader support after #9247 (#10727)Vitaliy
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-04-18Shaders: Complete 478e753. OpenGL 4.3 compatiblitySmallJoker
2020-02-16Shaders: Fix OpenGL < 4.3 compatibilitySmallJoker
2019-11-19Waves generated with Perlin-type noise #8994Lars Hofhansl
2019-09-26Simple shader fixes. (#8991)lhofhansl
1. Pass current camera offset to shader, so shader have access to the global coordinates 2. Pass animation timer to fragment shader. C++ code is already there, just wasn't declared in the shader 3. Delay animation timer wrap-around (from 100s to about 16 minutes)
2019-03-27Require 'waving = 3' in a nodedef to apply the liquid waving shader (#8418)Paramat
Makes the liquid waving shader per-nodedef like waving leaves/plants, instead of being applied to all liquids. Like the waving leaves/plants shaders, the liquid waving shader can also be applied to meshes and nodeboxes. Derived from a PR by t0ny2.
2018-08-30Shaders: Fix comment line (#7668)xzcx
Fixed comment as finalColorBlend() does not exist in the code base.
2017-01-23Add hardware node coloring. Includes:Dániel Juhász
- Increase ContentFeatures serialization version - Color property and palettes for nodes - paramtype2 = "color", "colored facedir" or "colored wallmounted"
2016-11-04Remove unused shader matrices. (#4723)lhofhansl
2016-03-30Nodes shader: Decrease amplitude of waving leaves and plantsparamat
Fix initialisation of variable 'disp' Fix a few minor code style issues Add independent X motion combining 2 prime frequencies
2016-03-25Replace CRLF with LF in shader filesest31
2015-09-07Shaders: use triple-frequency waving for leaves and plantsparamat
2015-08-20Remove use of engine sent texture tiling flags - theyre no longer neededRealBadAngel
2015-07-16Fix relief mapping issuesRealBadAngel
2015-07-02Shaders fixes and cleanup relief mapping code.RealBadAngel
2015-06-21Remove textures vertical offset. Fix for area enabling parallax.RealBadAngel
2015-06-14Automated whitespace error fix for last commitest31
2015-06-14Improved parallax mapping. Generate heightmaps on the fly.RealBadAngel
2015-01-16Optimize bumpmapping mathematicsLoic Blot
OpenGL_vertex: * bufferize a duplicate calcul * Factorize vertexes
2015-01-16Revert "Optimize bumpmapping mathematics"Craig Robbins
This reverts commit 148fffb0f23fa437c67639ff3cc69177fb71d76a.
2015-01-15Optimize bumpmapping mathematicsLoic Blot
OpenGL_vertex: * bufferize a duplicate calcul * Factorize vertexes
2014-12-07Restore finalColorBlend implementation in shaders.RealBadAngel
2014-08-16Let lighting be done only CPU side. Remove finalColorBlend implementation ↵RealBadAngel
from shaders.
2014-08-14Make faces shading correct for all possible modes.RealBadAngel
Skip shading for lightsources and top of the nodes. Fixes liquid sources and flowing surfaces having different brightness.
2014-07-07Faces shading fixesRealBadAngel
2014-06-17Improved faces shading with and without shaders.RealBadAngel
2014-06-15Unite nodes shaders.RealBadAngel
Pass drawtype and material type to shaders. Move shaders generation to startup only. Allow assign shaders per tile. Initial code to support water surface shader.