
Transparency on mesh
-
- Posts: 7
- Joined: Fri Dec 07, 2018 7:21 pm
Transparency on mesh
Hi, I've tried to find a solution on the forums but I haven't been able to find it. It could be that it's so simple no one bothered to ask. Anyway, I'm trying to have a transparency gradient on my mesh (this is a simple mesh, just a cylinder), so that when I offset the texture, it fades out. Any help would be appreciated! Also, I'm verryyyy new to shaders, so I'm just kind of fumbling through it all. 

- Amplify_Borba
- Posts: 1239
- Joined: Mon Jul 24, 2017 9:50 am
Re: Transparency on mesh
Hello, thank you for getting in touch and for your support!
Could you please elaborate on the effect?
How exactly would offsetting the texture UV's influence opacity? What would make it increase or decrease?
A screenshot or video example would be great, just so that we can better help you achieve it.
Could you please elaborate on the effect?
How exactly would offsetting the texture UV's influence opacity? What would make it increase or decrease?
A screenshot or video example would be great, just so that we can better help you achieve it.
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
-
- Posts: 7
- Joined: Fri Dec 07, 2018 7:21 pm
Re: Transparency on mesh
I was watching one of the beginner videos and thought something like this would work, but it doesn't do anything. I'm probably thinking about it in the wrong way. If I plug it into the opacity clip, it'll work but it won't be a soft edge like I want it to be.
- Amplify_Borba
- Posts: 1239
- Joined: Mon Jul 24, 2017 9:50 am
Re: Transparency on mesh
If you set your shader's Blend Mode to Transparent and test the following setup, it should fade the object in / out as you drag the slider:

Notice that I'm editing the shader in Material Mode and with the float set as a property, so that I can see the results instantly without having to compile every time I change the value through the slider.


Notice that I'm editing the shader in Material Mode and with the float set as a property, so that I can see the results instantly without having to compile every time I change the value through the slider.

Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
-
- Posts: 7
- Joined: Fri Dec 07, 2018 7:21 pm
Re: Transparency on mesh
Hmm, not sure what I'm doing wrong but I get this when I follow the instructions.
- Amplify_Borba
- Posts: 1239
- Joined: Mon Jul 24, 2017 9:50 am
Re: Transparency on mesh
Apologies if I wasn't fully clear before, but you'll always need to compile your shader after adding or removing any connection, can you confirm that you've compiled it after changing the node setup?
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
-
- Posts: 7
- Joined: Fri Dec 07, 2018 7:21 pm
Re: Transparency on mesh
No worries, but yeah I did compile it. I'm going crazy trying to figure out how mine is different and everything looks the same with how yours is setup.
I also just tried starting fresh with a new shader/material and cylinder from Unity but I get the same result.
I also just tried starting fresh with a new shader/material and cylinder from Unity but I get the same result.
- Amplify_Borba
- Posts: 1239
- Joined: Mon Jul 24, 2017 9:50 am
Re: Transparency on mesh
I can't seem to replicate the behavior you're getting, can you confirm that you're using the latest available version from our website?
If so, could you send us the shader so that we can examine the generated code?
If so, could you send us the shader so that we can examine the generated code?
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
-
- Posts: 7
- Joined: Fri Dec 07, 2018 7:21 pm
Re: Transparency on mesh
Ok, I'll try updating. I just checked and I'm on version 1.58.
-
- Posts: 7
- Joined: Fri Dec 07, 2018 7:21 pm
Re: Transparency on mesh
