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

Показать описание
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.
Комментарии