SamSuka
Gabriel Aguiar Prod.
Gabriel Aguiar Prod.

patreon


Shader Graph - Portal Preview 01

Exclusive Patreon Preview of upcoming tutorial about Portal Shaders in Unity Shader Graph!

Stay tuned, coming out this Sunday (02/11/18).

Enjoy!

Shader Graph - Portal Preview 01

Comments

Thanks, it did help!

kalmiya

It's way simpler. Alpha goes to Mask in 2D Sprite shaders. Anyway, I have attached 2 new Portal shaders here: https://www.patreon.com/posts/22919692 Hope it helps, enjoy!

Started with lit/unlit-2d and was wondering why there was no alpha-input which confused me... then decided to not deviate too much from the tutorial and first try to get that one working. Copied the nodes over now to an unlit-2d shader and that's when I noticed there is actually a color4 (as opposed to color3 and alpha) in the PBR shader. So the effect does look the quite similar to the PBR version, only without having the option to mix two colors which just looked kind of cool. Will try a few more of your tutorials first to gain some experience and then give this another try.

kalmiya

What shader did you start with? I suggest not to use the PBR in a 2D Renderer, but instead use a 2D Lit shader. Or an Unlit shader if you don't need Light to affect the Portal.

Followed your tutorial in 2019.3.0f6 using URP with 2D-renderdata, and when the last multiply-step is only connected to "emission" and "alpha" of the PBR-shader the "main preview" is pure grayscale only (not the slightest bit of color in it). When switching the renderer to "Forward Render" it's grayscale mostly, but this time with a hint of color (pale version of what you see in the multiply step) which is exactly what your tutorial video shows. As a work-around, I connected the multiply to "albedo" (instead of emissive), but that means you can't have a custom albedo-color and fade it into another color with emission. It's a somewhat older tutorial, but the effect is really nice and I was wondering if you have any idea how to get it to work when using the 2D renderer?

kalmiya


More Creators