aboutsummaryrefslogtreecommitdiff
path: root/client/shaders/nodes_shader/opengl_vertex.glsl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Improve shadow filters (#12195)x20482022-05-211-0/+2
| | | | | | | | | * 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
* Implement shadow offsets for the new SM distortion function (#12191)x20482022-04-141-16/+57
| | | | | | | | * 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
* Spacing fixesShadowNinja2022-04-081-2/+2
|
* Tune shadow perspective distortion (#12146)x20482022-03-311-4/+4
| | | | | * 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
* Add API to control shadow intensity from the game/mod (#11944)x20482022-03-261-28/+29
| | | * Also Disable shadows when sun/moon is hidden. Fixes #11972.
* Reuse normal offset calculation for nodesDmitry Kostenko2022-03-071-3/+15
|
* Shadow mapping render pass (#11244)Liso2021-06-061-5/+54
| | | Co-authored-by: x2048 <codeforsmile@gmail.com>
* Fix swapped vertex colors on GLES2sfan52021-05-111-3/+7
|
* Fix GLES shader support after #9247 (#10727)Vitaliy2020-12-221-1/+5
|
* Fix MSAA stripes (#9247)HybridDog2020-12-041-2/+5
| | | | | 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.
* Shaders for Android (GLES 2) (#10506)Vitaliy2020-10-251-21/+21
| | | | | Shader support for OpenGL ES 2 devices (Android) Co-authored-by: sfan5 <sfan5@live.de>
* Remove all bump mapping and parallax occlusion related code.Lars2020-10-171-43/+2
|
* Shaders: Complete 478e753. OpenGL 4.3 compatiblitySmallJoker2020-04-181-2/+2
|
* Shaders: Fix OpenGL < 4.3 compatibilitySmallJoker2020-02-161-8/+6
|
* Waves generated with Perlin-type noise #8994Lars Hofhansl2019-11-191-6/+53
|
* Simple shader fixes. (#8991)lhofhansl2019-09-261-0/+8
| | | | | 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)
* Require 'waving = 3' in a nodedef to apply the liquid waving shader (#8418)Paramat2019-03-271-1/+1
| | | | | | | | 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.
* Shaders: Fix comment line (#7668)xzcx2018-08-301-1/+1
| | | Fixed comment as finalColorBlend() does not exist in the code base.
* Add hardware node coloring. Includes:Dániel Juhász2017-01-231-24/+19
| | | | | | - Increase ContentFeatures serialization version - Color property and palettes for nodes - paramtype2 = "color", "colored facedir" or "colored wallmounted"
* Remove unused shader matrices. (#4723)lhofhansl2016-11-041-2/+0
|
* Nodes shader: Decrease amplitude of waving leaves and plantsparamat2016-03-301-11/+15
| | | | | | Fix initialisation of variable 'disp' Fix a few minor code style issues Add independent X motion combining 2 prime frequencies
* Replace CRLF with LF in shader filesest312016-03-251-86/+86
|
* Shaders: use triple-frequency waving for leaves and plantsparamat2015-09-071-25/+23
|
* Remove use of engine sent texture tiling flags - theyre no longer neededRealBadAngel2015-08-201-1/+1
|
* Fix relief mapping issuesRealBadAngel2015-07-161-1/+1
|
* Shaders fixes and cleanup relief mapping code.RealBadAngel2015-07-021-5/+5
|
* Remove textures vertical offset. Fix for area enabling parallax.RealBadAngel2015-06-211-8/+12
|
* Automated whitespace error fix for last commitest312015-06-141-40/+40
|
* Improved parallax mapping. Generate heightmaps on the fly.RealBadAngel2015-06-141-39/+40
|
* Optimize bumpmapping mathematicsLoic Blot2015-01-161-7/+24
| | | | | | OpenGL_vertex: * bufferize a duplicate calcul * Factorize vertexes
* Revert "Optimize bumpmapping mathematics"Craig Robbins2015-01-161-24/+7
| | | | This reverts commit 148fffb0f23fa437c67639ff3cc69177fb71d76a.
* Optimize bumpmapping mathematicsLoic Blot2015-01-151-7/+24
| | | | | | OpenGL_vertex: * bufferize a duplicate calcul * Factorize vertexes
* Restore finalColorBlend implementation in shaders.RealBadAngel2014-12-071-3/+29
|
* Let lighting be done only CPU side. Remove finalColorBlend implementation ↵RealBadAngel2014-08-161-27/+1
| | | | from shaders.
* Make faces shading correct for all possible modes.RealBadAngel2014-08-141-1/+1
| | | | | Skip shading for lightsources and top of the nodes. Fixes liquid sources and flowing surfaces having different brightness.
* Faces shading fixesRealBadAngel2014-07-071-14/+0
|
* Improved faces shading with and without shaders.RealBadAngel2014-06-171-7/+13
|
* Unite nodes shaders.RealBadAngel2014-06-151-0/+135
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.