Reputation: 400
I am using HDRP and Shader Graph. From what I researched, it seems that shaders can't be combined but that I can apply two materials. However, when I do, they aren't really combining as I was hoping they would.
I have a character:
And I want to apply a shader to create a teleportation effect:
It slowly disappears with glowing edges. I learned this effect from this Brackeys video https://www.youtube.com/watch?v=taMp1g1pBeE and I simply replaced the time node that connected to the Alpha Threshold and made everything disappear with a float that I intend to animate from script.
When I add both materials to my skinned mesh renderer, two problems happen, independently of the order of the materials in the materials list.
I tried a few things but can't seem to disable the "base color" for my shader. I tried making the teleportation shader's material transparent, which reveals the other material underneath but two other problems occur.
My teleportation shader:
My renderer settings:
What am I doing wrong? How can I combine both?
Upvotes: 2
Views: 5829
Reputation: 73
What you will want to do is use just one shader, your teleport shader, and add nodes to it for the base texture. Then, using the Add node, you can combine with the current input of the Base Color fragment slot.
Upvotes: 1