1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Clean up texture filtering settings (#13683)

This commit is contained in:
Gregor Parzefall 2023-08-24 10:50:47 +02:00 committed by GitHub
parent d0ee63c766
commit 72ef90885d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 52 additions and 94 deletions

View file

@ -371,35 +371,21 @@ enable_3d_clouds (3D clouds) bool true
[**Filtering and Antialiasing]
# Use mipmapping to scale textures. May slightly increase performance,
# Use mipmaps when scaling textures down. May slightly increase performance,
# especially when using a high resolution texture pack.
# Gamma correct downscaling is not supported.
# Gamma-correct downscaling is not supported.
mip_map (Mipmapping) bool false
# Use anisotropic filtering when viewing at textures from an angle.
anisotropic_filter (Anisotropic filtering) bool false
# Use bilinear filtering when scaling textures.
# Use bilinear filtering when scaling textures down.
bilinear_filter (Bilinear filtering) bool false
# Use trilinear filtering when scaling textures.
# Use trilinear filtering when scaling textures down.
# If both bilinear and trilinear filtering are enabled, trilinear filtering
# is applied.
trilinear_filter (Trilinear filtering) bool false
# Filtered textures can blend RGB values with fully-transparent neighbors,
# which PNG optimizers usually discard, often resulting in dark or
# light edges to transparent textures. Apply a filter to clean that up
# at texture load time. This is automatically enabled if mipmapping is enabled.
texture_clean_transparent (Clean transparent textures) bool false
# When using bilinear/trilinear/anisotropic filters, low-resolution textures
# can be blurred, so automatically upscale them with nearest-neighbor
# interpolation to preserve crisp pixels. This sets the minimum texture size
# for the upscaled textures; higher values look sharper, but require more
# memory. Powers of 2 are recommended. This setting is ONLY applied if
# bilinear/trilinear/anisotropic filtering is enabled.
# This is also used as the base node texture size for world-aligned
# texture autoscaling.
texture_min_size (Minimum texture size) int 64 1 32768
# Use anisotropic filtering when looking at textures from an angle.
anisotropic_filter (Anisotropic filtering) bool false
# Select the antialiasing method to apply.
#
@ -1831,6 +1817,9 @@ world_aligned_mode (World-aligned textures mode) enum enable disable,enable,forc
# Warning: This option is EXPERIMENTAL!
autoscale_mode (Autoscaling mode) enum disable disable,enable,force
# The base node texture size used for world-aligned texture autoscaling.
texture_min_size (Base texture size) int 64 1 32768
# Side length of a cube of map blocks that the client will consider together
# when generating meshes.
# Larger values increase the utilization of the GPU by reducing the number of