Glowy Outline Shader and Controller - Amplify Shader Editor & Unity Tutorial

Veröffentlicht am: 08 Juli 2023
auf dem Kanal: Binary Lunar
5,695
132

⭐Amplify Shader Editor: https://assetstore.unity.com/packages...
🔥30 for $30 Mega Bundle: https://assetstore.unity.com/mega-bun...
Download project files(Patrons only):   / binarylunar  

In this video, I will show you how to create a 2D outline shader using Amplify Shader Editor.

We recently did a poll, and 45% of you voted for a new shader tutorial. I'm happy to say I've found a fantastic shader by ‪@MirzaBeig‬ on Twitter that I think you'll all love.

Mirza's shader is a versatile outline shader that can be used for various purposes. It's easy to customize and can be used to create outlines of any thickness.

In this video, I'll show you how to create the shader from scratch in Amplify Shader Editor. I'll also show you how to control the outline by creating an outline controller script that triggers the outline on or off when you hover over the sprite with your mouse cursor.

So if you want to create a 2D outline shader, this video is for you. I hope you enjoy it!"

00:00 Intro
02:00 Creating new Unity 2D project
02:33 Creating new ASE Shader
03:44 Creating CGINC shader script file.
08:41 Using Custom expression node in ASE (Get neighbor pixel with the largest alpha).
12:54 Creating IsOutline custom expression node
14:00 Rendering the outline using the Lerp node
16:08 Installing and using the Post Processing package to render the bloom
18:51 Creating Outline Controller script to turn on the outline when we hover over the sprite.
20:58 Using the Events System to trigger OnPointerEnter and OnPointerExit events.

Mirza Tweet Link:   / 1640683582095081475  

You can copy his code from this Reddit post:   / procedural_2d_outline_shader_tutorial_w_co...  


● Discord:   / discord  
● Subscribe:    / @binarylunar  
● Twitter:   / binarylunar  
● Facebook:   / binary-lunar-102590804565782  
● Support us on Patreon:   / binarylunar  
● Play Our Games on itch.io: https://binarylunar.itch.io/
● Check our Assets: https://assetstore.unity.com/publishe...
● The Ultimate 2D & 3D Shader Graph Course: https://www.udemy.com/course/the-ulti...
● Create Online Multiplayer Game in Unity(Netcode,Relay,Lobby): https://www.udemy.com/course/create-o...


Auf dieser Seite können Sie das Online-Video Glowy Outline Shader and Controller - Amplify Shader Editor & Unity Tutorial mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Binary Lunar 08 Juli 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 5,695 Mal angesehen und es wurde von 132 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!