Outlines in Shader Graph | Bytesize Gamedev

preview_player
Показать описание
Bytesize Gamedev is a series of videos featuring tiny effects, delivered in 60 seconds or less. In this video, learn how to make an outline effect in Shader Graph and URP.
--------------
Unity 2019.4.12f1, URP/Shader Graph 7.3.1
---------------
------------

#bytesizegamedev #unity #tutorials
Рекомендации по теме
Комментарии
Автор

For those using Unity 2020.3.2 (or similar), make sure to make it a "Sprite Unlit" instead of just Unlit, because you can only change the alpha with the former. Thanks Daniel, this worked great.

citywizardgames
Автор

thanks for the tutorial! anyone know if there's a way to have the outline thickness based in worldspace instead of object space? 🤔so that objects can be scaled up and down but the outline stays consistent?

campbellfletcher
Автор

how to get rid of the aliasing effect? FXAA or TAA wont help

robosergTV
Автор

This just flips the normals and inflates the mesh, you'd need a 2 pass shader for this to work. 1 to render the mesh normally and 1 to render the mesh with inverted normals and the outlines colour.

Polytricity
Автор

When I do Create > Shader at the very beginning, the Unlit Graph option isn't there. I can't figure out how to make it appear in my settings yet D:

sneepsnorpd
Автор

Can you provide a brief explanation as to why this works? How does the disabling front face rendering make outlines?
Also, how did you combine outline with pikachu texture? Dont you have to plug in the texture to color input? But the color is already set to black for outline.

lofiandchill
Автор

Outline is made on the object but not actually drawn with black(it's just transparent). 2021.3.1f1. Using URP and tried a bunch of different tweaks. Unfortunate...

Mplode
Автор

Hello Daniel, love your work. This shader doesn't seem to work so well with flat surfaces such as cubes though? Is there a fix to that?

denizdemir
Автор

I can't find the "Unlit Master" in the shader graph, can someone please help me?

nicholaas
Автор

I’ve had this problem. When I’m making an outline shader for the main character and I play the screen is just black. Any idea why?

unpaidintern
Автор

Hopefully one day shader graph will let us render backface only rather than two-sided with front face culled 😔

__dane__
Автор

Hello i'm on 2020.3 and it works well on smooth surfaces, but on sharp surfaces, the faces break apart, and destroy the illusion ... how can i fix this ?

urganway
Автор

How does it work with the main pikachu material? Does it have 2 materials in the end?

delko
Автор

Just FYI, make sure your model has scale applied so the model has a scale of (1, 1, 1) or thereabouts

birdfacemd
Автор

Hello, I want to ask some questions. i tried this and works fine if the object only have one material. But when my object like the character, it has two material for body and hair. then i created 2 outline material for hair and body, but only hair that have the outline effect. Anyone know how to fix this ?
Thank you

dikpo
Автор

Hello there!!
Is there anyway I can DM you !??

Keep good work love it ❤️

Vantivify
Автор

Hahahah i just got the opposite to an outline, the faces are extruded and colored and the vertices are just transparent. It was a good video anyway

_g_r_m_
Автор

Why tf do I need to downgrade versions just to do this shit

justpncil
Автор

This does nothing except aligning the vertices along a spherical shape. Really bad video, this is not even half of the job.

martinwettig