Pigment/src/ImageViewportDisplay.gd

11 lines
220 B
GDScript3
Raw Normal View History

2025-10-10 22:05:07 +02:00
extends Sprite2D
func _ready() -> void:
hide()
func update_zoom_texture_filter(zoom: Vector2):
if zoom.x >= 1.5:
texture_filter = TEXTURE_FILTER_NEAREST_WITH_MIPMAPS
else:
texture_filter = TEXTURE_FILTER_LINEAR