Material render size in UI materials

I’m trying to render pixel perfect UI using signed distance fields. To achieve this I need the actual pixel size of the material currently being rendered. The ViewSize property just returns the size of the viewport, not of the current rendered material. Does anyone know how I can get the actual pixel size?

Maybe a additional node should be added only available in UI materials?

1 Like

The pixel size of an material can be retrieved with the Coordinate Index 3 of the TexCoord node in the material editor.

288775-screenshot.png

1 Like

THANK YOU.