1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Minor changes

This commit is contained in:
Gefüllte Taubenbrust 2024-08-18 16:11:30 +02:00
parent e6752008e0
commit e5afca89f7
8 changed files with 50 additions and 2 deletions

View file

@ -48,6 +48,9 @@ vec4 sampleClouds(vec2 uv) {
}
vec4 getClouds(vec2 uv) {
#if (VOLUMETRICS_UNDERSAMPLING <= 1)
return sampleClouds(uv);
#else
return
sampleClouds(uv - texelSize0 * vec2(-1.0, -1.0)) / 9.0 +
sampleClouds(uv - texelSize0 * vec2( 0.0, -1.0)) / 9.0 +
@ -58,6 +61,7 @@ vec4 getClouds(vec2 uv) {
sampleClouds(uv - texelSize0 * vec2(-1.0, 1.0)) / 9.0 +
sampleClouds(uv - texelSize0 * vec2( 0.0, 1.0)) / 9.0 +
sampleClouds(uv - texelSize0 * vec2( 1.0, 1.0)) / 9.0;
#endif
}
void main(void)