Skip to main content
added 147 characters in body
Source Link

EDIT: I have tried opening the shader in an empty project to test if there were some strange settings in the project, but it is the same issue.

I am creating a power bar which wipes from left to right. I have created it before very simply in a previous project but in this new project the alpha clip threshold value does not correspond to the amount of alpha in the texture.

I have taken the textures directly from the old project and even tried taking the exact shader graph from the old project but the threshold still does not work like it does in the old project. As far as I can see all settings are the same across both projects. Is there anything obvious below or anything I should be looking for?

The old project is v2021.1.22f1. The new project is v2021.3.5f1.

You can see the graph below.

enter image description here

When the AlphaWipe value is 0.5, the amount of the texture visible should be half but it seems to be around 0.2.

enter image description here

At value 0.8, it looks to be about half.

enter image description here

Value of 1 does fill the texture.

enter image description here

I am creating a power bar which wipes from left to right. I have created it before very simply in a previous project but in this new project the alpha clip threshold value does not correspond to the amount of alpha in the texture.

I have taken the textures directly from the old project and even tried taking the exact shader graph from the old project but the threshold still does not work like it does in the old project. As far as I can see all settings are the same across both projects. Is there anything obvious below or anything I should be looking for?

The old project is v2021.1.22f1. The new project is v2021.3.5f1.

You can see the graph below.

enter image description here

When the AlphaWipe value is 0.5, the amount of the texture visible should be half but it seems to be around 0.2.

enter image description here

At value 0.8, it looks to be about half.

enter image description here

Value of 1 does fill the texture.

enter image description here

EDIT: I have tried opening the shader in an empty project to test if there were some strange settings in the project, but it is the same issue.

I am creating a power bar which wipes from left to right. I have created it before very simply in a previous project but in this new project the alpha clip threshold value does not correspond to the amount of alpha in the texture.

I have taken the textures directly from the old project and even tried taking the exact shader graph from the old project but the threshold still does not work like it does in the old project. As far as I can see all settings are the same across both projects. Is there anything obvious below or anything I should be looking for?

The old project is v2021.1.22f1. The new project is v2021.3.5f1.

You can see the graph below.

enter image description here

When the AlphaWipe value is 0.5, the amount of the texture visible should be half but it seems to be around 0.2.

enter image description here

At value 0.8, it looks to be about half.

enter image description here

Value of 1 does fill the texture.

enter image description here

Source Link

Unity Shader Graph Alpha Clip Threshold not acting as expected

I am creating a power bar which wipes from left to right. I have created it before very simply in a previous project but in this new project the alpha clip threshold value does not correspond to the amount of alpha in the texture.

I have taken the textures directly from the old project and even tried taking the exact shader graph from the old project but the threshold still does not work like it does in the old project. As far as I can see all settings are the same across both projects. Is there anything obvious below or anything I should be looking for?

The old project is v2021.1.22f1. The new project is v2021.3.5f1.

You can see the graph below.

enter image description here

When the AlphaWipe value is 0.5, the amount of the texture visible should be half but it seems to be around 0.2.

enter image description here

At value 0.8, it looks to be about half.

enter image description here

Value of 1 does fill the texture.

enter image description here