Fragmented/src/ImageViewportDisplay.gd

8 lines
188 B
GDScript3
Raw Normal View History

2024-06-04 18:31:04 +02:00
extends Sprite2D
func update_zoom_texture_filter(zoom: Vector2):
if zoom.x >= 1.5:
2024-06-04 18:31:04 +02:00
texture_filter = TEXTURE_FILTER_NEAREST_WITH_MIPMAPS
else:
texture_filter = TEXTURE_FILTER_LINEAR