1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Implement rendering pipeline and post-processing (#12465)

Co-authored-by: Lars Mueller <appgurulars@gmx.de>
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: lhofhansl <lhofhansl@yahoo.com>
This commit is contained in:
x2048
2022-09-06 08:25:18 +02:00
committed by GitHub
parent 464043b8ab
commit ff6dcfea82
32 changed files with 1476 additions and 565 deletions

View File

@@ -42,6 +42,7 @@ centroid varying vec2 varTexCoord;
varying float perspective_factor;
#endif
varying float area_enable_parallax;
varying vec3 eyeVec;
varying float nightRatio;
@@ -193,6 +194,9 @@ void main(void)
vPosition = gl_Position.xyz;
eyeVec = -(mWorldView * pos).xyz;
#ifdef SECONDSTAGE
normalPass = normalize((inVertexNormal+1)/2);
#endif
vNormal = inVertexNormal;
// Calculate color.