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

Опубликовано: 08 Июль 2023
на канале: 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...


На этой странице сайта вы можете посмотреть видео онлайн Glowy Outline Shader and Controller - Amplify Shader Editor & Unity Tutorial длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Binary Lunar 08 Июль 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 5,695 раз и оно понравилось 132 зрителям. Приятного просмотра!