Output works on debug input but not in albedo

Node-based Shader Editor

Output works on debug input but not in albedo

Postby oms064 » Sat Jan 19, 2019 1:50 am

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
oms064
 
Posts: 4
Joined: Sun Nov 26, 2017 10:01 pm

Re: Output works on debug input but not in albedo

Postby CaptainHexagon » Sat Jan 19, 2019 8:07 am

Why are you using GrapScreenColor?
CaptainHexagon
 
Posts: 3
Joined: Sat Jan 19, 2019 7:58 am

Re: Output works on debug input but not in albedo

Postby Amplify_Borba » Tue Jan 22, 2019 11:07 am

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
(153.22 KiB) Downloaded 77 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!
User avatar
Amplify_Borba
 
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am


Return to Amplify Shader Editor

Who is online

Users browsing this forum: No registered users and 0 guests

cron