mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Clip posteffect color to respective nodes
This commit is contained in:
parent
5aeaf20849
commit
07b17760ba
21 changed files with 883 additions and 105 deletions
|
@ -171,6 +171,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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue