0 votes

Is it possible to have normal map based 2d shading snap to the original pixels? In my case I get smooth shading (bottom image). I would like to maintain the original pixel style (top image).

without shading
with shading

(edit: added permanent image links)

Godot version 3.4.2
in Engine by (62 points)
edited by

I found a solution in which the graphics is rendered in low resolution and then displayed in a Sprite using a ViewportTexture. However, I wish there was a less complex solution as I have a lot of independent objects on the screen which all would need an own Viewport.

I found a solution in which the graphics is rendered in low resolution and then displayed in a Sprite using a ViewportTexture.

Not a solution (see here).

1 Answer

0 votes

Normal map based shading now is pixel perfect: I simply forgot to turn off the texture filtering during import of the normal map (see here).

Getting the original light to align pixel perfectly with the target texture seems to be another matter.

by (62 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.