I have a little problem with a gradient texture.
What I’m trying to do is a circular progress bar material.
The gradient is used to control the bar opacity regions.
I checked the gradient values in photoshop. They are correct.
I tried it in two ways:
- Importing the texture as grayscale
- Importing the texture as a channel in a color image with other masks in the other channels
In both cases the sRGB tickbox is unchecked in the texture asset editor.
The texture sampler nodes in the material uses the linear color (or grayscale) sampler type.
In both cases I get different but incorrect results for the bar position.
Except for the value of 0.75 which is somehow correct. In general, the lower the value, the bigger the discrepancy.
Any idea why this is not working ?
I have attached some images of the gradient, the material function and various settings and their results.
I’d be happy for any help