Login
From:
Godot Forum
(Uncensored)
subscribe
Having trouble rendering nearest pixels with respect to the texture's pixel size - #2 by hyvernox - Shaders - Godot Forum
https://forum.godotengine.org/t/having-trouble-rendering-nearest-pixels-with-respect-to-the-textures-pixel-size/126388/2
links
backlinks
I’d try to add vec2(0.5) to the floored value (to get the center of the texel) before dividing by the width. Or convert the floored value to ivec2 and use texelFetch() (instead of dividing by the width in this case).
Roast topics
Find topics
Roast it!
Roast topics
Find topics
Find it!
Roast topics
Find topics
Find it!