Cyanilux / URP_ShaderGraphCustomLighting

Some custom lighting functions/sub-graphs for Shader Graph, Universal Render Pipeline
MIT License
558 stars 63 forks source link

MainLightShadows Does not work in Subgraph #22

Closed Sooly890 closed 6 months ago

Sooly890 commented 6 months ago

In Unlit Graph: image image

In Subgraph Connected to Unlit Graph image image (ignore the parameters, they are not attached to anything) image

What's going on here?

Cyanilux commented 6 months ago

Heya, this is bit of a limitation of ShaderGraph - it doesn't collect the keywords (defined in the Blackboard) from nested subgraphs. You can copy to / recreate them in the main graph and it should work though.

Sooly890 commented 6 months ago

@Cyanilux thanks for the reply, is there really no way to get around this (except redefining the keywords)? I'll use this for now but it would be nice to have a nice packaged CustomLight subgraph that can be drag and dropped I read your comment wrong. This will work sufficiently for me