Search found 2 matches

by Kilerbomb
Tue Apr 09, 2019 12:07 pm
Forum: Amplify Shader Editor
Topic: World light direction fallback
Replies: 3
Views: 20680

Re: World light direction fallback

You were on the right track but instead of the light direction vector use light intensity. If there is a real time light in the scene, light intensity will always be greater than zero. You can get light intensity from the light color node.
Hmm that seems like it would work but wouldn't point ...
by Kilerbomb
Mon Apr 08, 2019 2:15 am
Forum: Amplify Shader Editor
Topic: World light direction fallback
Replies: 3
Views: 20680

World light direction fallback

Hello! I am working on a toon shader that needs to work in both realtime and baked lighting situations. I am using a shading ramp texture and would like to have it fall back to a fake light direction of [0,1,0] when there is no directional light present. How would I test for this? I have tried using ...