1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00

Clip posteffect color to respective nodes

This commit is contained in:
DS 2022-07-15 02:18:11 +02:00 committed by Desour
parent 5f5ea13251
commit 614755b364
20 changed files with 882 additions and 103 deletions

View file

@ -169,6 +169,7 @@ void main(void)
// Generate waves with Perlin-type noise.
// The constants are calibrated such that they roughly
// correspond to the old sine waves.
// Note: The same thing is implemented in clientmap.cpp. Keep them consistent!
vec3 wavePos = (mWorld * pos).xyz + cameraOffset;
// The waves are slightly compressed along the z-axis to get
// wave-fronts along the x-axis.