Output works on debug input but not in albedo

Node-based Shader Editor
Post Reply
oms064
Posts: 4
Joined: Sun Nov 26, 2017 10:01 pm

Output works on debug input but not in albedo

Post by oms064 »

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
CaptainHexagon
Posts: 3
Joined: Sat Jan 19, 2019 7:58 am

Re: Output works on debug input but not in albedo

Post by CaptainHexagon »

Why are you using GrapScreenColor?
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Output works on debug input but not in albedo

Post by Amplify_Borba »

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:
DistanceFade.zip
(152.66 KiB) Downloaded 224 times
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!
Post Reply