Fix MSAA stripes (#9247)

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.
This commit is contained in:
HybridDog 2020-12-04 20:16:12 +01:00 committed by Nils Dagsson Moskopp
parent c41e6a9648
commit 29c727f0cd
Signed by: erlehmann
GPG Key ID: A3BC671C35191080
1 changed files with 2 additions and 2 deletions

View File

@ -517,8 +517,8 @@ texture_min_size (Minimum texture size) int 64
# This algorithm smooths out the 3D viewport while keeping the image sharp,
# but it doesn't affect the insides of textures
# (which is especially noticeable with transparent textures).
# This option is experimental and might cause visible spaces between blocks
# when set above 0.
# Visible spaces appear between nodes when shaders are disabled.
# If set to 0, MSAA is disabled.
# A restart is required after changing this option.
fsaa (FSAA) enum 0 0,1,2,4,8,16