Hello!
I'm trying to make a shader that makes the object transparent depending on distance but there's an isue.
This is the shader:
https://imgur.com/42smKPQ
This is the output:
https://imgur.com/ohl6hYH
For some reason the Texture is making it all white and can't find the reason, if I pass the color directly everything works.
Stranger still when I take the output to the Debug it works.
https://imgur.com/sAzLIVi
Output works on debug input but not in albedo
-
CaptainHexagon
- Posts: 3
- Joined: Sat Jan 19, 2019 7:58 am
Re: Output works on debug input but not in albedo
Why are you using GrapScreenColor?
- Amplify_Borba
- Posts: 1239
- Joined: Mon Jul 24, 2017 9:50 am
Re: Output works on debug input but not in albedo
Hello, the Debug input generates a preview shader that overrides all other active inputs and disregards lighting information, however, not all nodes or combinations can be previewed in the debug mode.
I'm sharing a sample that we've built for another user that shows how you can achieve a simple distance fade effect with 2 different methods:
Please let us know if this helps, thanks!
I'm sharing a sample that we've built for another user that shows how you can achieve a simple distance fade effect with 2 different methods:
Please let us know if this helps, thanks!
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!