Hello,
I’m creating a mobile game and I recently switched to the Lightweight Render Pipeline to use the Shader Graph. As I’m new to this, I watched the videos of Brackeys, including this one (FORCE FIELD in Unity - SHADER GRAPH - YouTube) where he is using the alpha channel.
My question is why this is not working in my case. I thing I’m just using a simple Shader Graph with just some nodes, but the whole sphere is opaque.
As you can see on the picture, I tried with a invert colors node, but the result is the same, with or without this node.
Thank you in advance
Have you changes the PBR Master node’s surface to transparent? There should be a small gear in the upper right-hand corner of the node when you select the node. Click on that and under surface change it to transparent. That should fix your problem.
As someone pointed out on the Brackeys tutorial comments, you might also want to put the AlphaClipThreshold to 0 to make the fresnel effect work if you’re using the Universal Render Pipeline.
Hi, @ jrummelhart2019 mentioned there should be a gear, but when I click it, the small menu doesn’t show up. Does anybody know why nothing happens?
Edit, for others encountering this issue:
Apparently, this depends on Unity version. I’ve been using an alpha version, 2020.2.0a18.2359. Checking in the internet, I’ve found people mentioning, that function of the “gear” button has been moved to the graph inspector, although I couldn’t find it in my version. After upgrading to Unity 2021.1.26f1, the “graph inspector” is there by default.
Telling people to “upgrade Unity” might not be the best piece of advice, but suggesting to “look for the graph inspector” definitely is.
Open the object in the inspector and turn “Cast Shadows” to off.,Open the object in inspector and turn Cast Shadows off.