Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | keke | |
Old Version | Published before Godot 3 was released. |
Is there a way to make stuff drawn with _draw()
(circles, lines, etc…) anti-aliased?
AFAIK, there’s no way with godot 2.1.x
volzhs | 2017-11-01 06:12
with a shader, maybe?
eons | 2017-11-01 11:09
Not even with a shader.
Zylann | 2017-11-03 01:17
What I did once with particles, is to put them on another viewport and apply a shader on the sprite that used it as texture, that may work with custom drawing too.
eons | 2017-11-03 03:53
If you are going to use a render-to-texture, you could render whatever you want in a texture twice as big, and then draw it at half the size, which will replicate anti-aliasing by drawing subpixels (in a naive way though^^)
Zylann | 2017-11-03 20:02