How to get Light Cookie shadows in Unlit Shader Graph/ASE?

I’m working on a unlit shader and I want to get light cookies into my shadows, any suggestions on how I can do this? I’m working in Amplify Shader Editor but figured I’d ask here too since it’s pretty common, maybe the approach is the same as in ShaderGraph? Not sure!

I’ve started down another route in the meantime where I’m trying to get my procedural light cookies render texture to display in a worldspace texture sample node on my terrain, but having some issues getting it to match up with the one from the directional light.

Any tips on either would be much appreciated! Thanks.

Also I’m doing all of this because I want colored shadows basically, and going through the Lit shader model doesn’t really seem to give me that option. I get Light Cookies in the Lit shader model but no colored shadows, and vice versa… I’ve almost got it working the way I want, hopefully I can figure out a clean way to get the light cookie shadow map info into a node so I can mix it in with the Main Light Attenuation node.

Cheers!

1 Like

Bump! Any tips for me on how how I get access to light cookie shadows in unlit graph shaders?

1 Like

In code you ahve to do this to get access to the light cookie info, it doesn’t just come with the direcitonal light, so it makes sense that there’s some extra node, but I’m not quite sure how to get this in the ASE shader graph @Amplify_RnD_Rick

1 Like

nvm found it, posting for anyone else that needs it

3 Likes

I’ll also add you need to make sure you have this for that node to work