Global illumination with cutouts

Node-based Shader Editor
Post Reply
JohnnyFactor
Posts: 9
Joined: Thu Aug 16, 2018 2:43 pm

Global illumination with cutouts

Post by JohnnyFactor »

When I bake lights with a cutout shader, the GI calculations ignore the alpha info. This works fine with Unity Standard shader, but I don't know which flag to set in ASE. You can see an example in the screenshot. The King of Hearts card is using Unity Standard Cutout shader.

Thanks for any help you can provide.
cards.jpg
cards.jpg (107.91 KiB) Viewed 2625 times
User avatar
Ricardo Teixeira
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: Global illumination with cutouts

Post by Ricardo Teixeira »

JohnnyFactor wrote:When I bake lights with a cutout shader, the GI calculations ignore the alpha info. This works fine with Unity Standard shader, but I don't know which flag to set in ASE. You can see an example in the screenshot. The King of Hearts card is using Unity Standard Cutout shader.

Thanks for any help you can provide.
cards.jpg
Hello,

Thank you for getting in touch, we would be happy to help.

Can you share a sample of the shader used?

Which Unity version are you using?

Thanks!
Sales & 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!
JohnnyFactor
Posts: 9
Joined: Thu Aug 16, 2018 2:43 pm

Re: Global illumination with cutouts

Post by JohnnyFactor »

Unity 2018.2.7.

Attached is the shader file for the Ace of Hearts card and the associated texture, in a zip file.
Attachments
Archive.zip
(31.26 KiB) Downloaded 254 times
User avatar
Ricardo Teixeira
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: Global illumination with cutouts

Post by Ricardo Teixeira »

JohnnyFactor wrote:Unity 2018.2.7.

Attached is the shader file for the Ace of Hearts card and the associated texture, in a zip file.
Thanks for the sample!

You'll have to rename your Albedo do Texture Sample node to MainTex, this resolved the issue in your sample.

Apologies for the inconvenience, this is actually a Unity limitation/requirement.

Thanks!
Sales & 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!
JohnnyFactor
Posts: 9
Joined: Thu Aug 16, 2018 2:43 pm

Re: Global illumination with cutouts

Post by JohnnyFactor »

That's great, thank you for sorting this out.
User avatar
Ricardo Teixeira
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: Global illumination with cutouts

Post by Ricardo Teixeira »

Happy to help!
Sales & 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