Question by
EvilToaster626 · Dec 14, 2017 at 11:53 AM ·
shadergraphicsui imageimage effectsimages
9 slice Image and Shader UV Coordinates
I'm having an issue with using a 9-sliced texture and a shader effect. Within my shader, I am applying a vertical fill, controlling the fill amount using the tex coordinates. When using 9-slice the fill amount is stretched out of proportion as the UV coordinates stretch with the image (which makes sense but isn't expected). If I don't use sliced mode my shader works as expected. I've attached an image which illustrates the issue, on the left the image is sliced and filled with a value of 0.5, on the right the image is not sliced but is filled using the same amount. Any ideas on how to fix this issue?
image?
Comment
Answer by neowedge · Oct 08, 2020 at 11:59 AM
Hi, @EvilToaster626! I'm having the same trouble. Did you found the solution?