Unity Issue Tracker - Texelsize node does not return the correct value when you reduce the texture quality in quality settings.
Closed
UUM-31304
Texelsize node does not return the correct value when you reduce the texture quality in quality settings.
Unity: Shader System
Won't Fix
2023.3.X
2023.2.X
2023.1.X
2022.3.X
2022.2.X
2021.3.X
2020.3.X
Feature Request
6.0.X
We need to provide a generic way of getting the texel size that takes into account the project settings.
The shadergraph node "texelsize" does not return the correct value when you reduce the texture quality in quality settings. I discovered this while working with the surface gradient framework, where stepsize become mismatched once the texture resolution is reduced in project quality settings (Master texture limit).
Documentation has this to say: "The width and height of the texture object report the original, non-limited sizes. You may have to take this into account if you perform special sampling or processing with textures subject to the master limit quality setting, and you use masterTextureLimit > 1."
We have no way that i know of to access the master texture limit in shadergraph so it is hard for users to compensate (and somewhat obscure to discover that you need to do so)
Prioritise and Follow this issue
Have a workaround or additional info about this issue?