p1petto
October 22, 2024, 10:33am
1
Godot Version
4.3
Question
Hello, I’m trying to draw lines in such a way that they don’t look smooth at high magnification
The picture shows in green what it looks like now, in red what it should look like approximately
extends Node2D
func _draw():
draw_line(Vector2(50.0, 10.0), Vector2(40.0, 4.0), Color.GREEN, 1.0)
Even without antialiasing, the lines are too detailed (zoom 20). How do I make lower quality lines?
I think this is going to require a shader. Try searching on gdshaders for ‘pixelate’.
Alas, shaders don’t work on Line2D the way I want them to, but I found another solution.
It is enough to reduce the size of the screen in the project settings, and then stretch it
system
Closed
November 21, 2024, 3:36pm
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.