How to Outline Any 3D Object in Unity 6
Автор: Sunny Valley Studio
Загружено: 2026-11-07
Просмотров: 2031
Описание:
Make it clear which object your player is selecting! In this Unity 6.6 URP tutorial, we’ll create a selection outline using Shader Graph and a custom C# render pass.
You’ll learn how to render selected objects as a black-and-white mask, expand their silhouette by sampling neighboring pixels, and remove the original shape to leave an outline. We’ll also adjust its color and width and discuss the limitations of thicker outlines.
Project settings used: MSAA disabled and Render Scale set to 1.
📦 Render feature script and Shader Graph:
/ selection-in-6-174595842
🎨 Assets: Tiny Treats — Lovely Living Room
https://tinytreats.itch.io/
····· Learn more ·····
Learn more from my courses:
https://courses.sunnyvalleystudio.com/
····· Get in touch ·····
𝗛𝗮𝘃𝗲 𝗮𝗻𝘆 𝗾𝘂𝗲𝘀𝘁𝗶𝗼𝗻𝘀? 𝗝𝗼𝗶𝗻 𝘁𝗵𝗲 𝗗𝗶𝘀𝗰𝗼𝗿𝗱!
/ discord
𝗣𝗟𝗘𝗔𝗦𝗘 𝘀𝘂𝗽𝗽𝗼𝗿𝘁 𝘁𝗵𝗲 𝗰𝗵𝗮𝗻𝗻𝗲𝗹:
/ sunnyvalleystudio
Chapters:
0:00 Unity 6 selection outline preview
0:42 Create the Selection Mask Shader Graph
1:39 Fullscreen Shader Graph and Blit Source
2:49 Create the custom URP render feature
4:40 Render Graph: draw the selection mask
6:07 Configure the renderer feature and test
6:45 Outline Shader Graph setup and properties
8:03 Screen UVs and eight-direction pixel offsets
9:32 Sample and expand the mask with Maximum
12:05 Create the outline border, color, and transparency
13:06 Test and customize the selection outline
13:25 Thick outline limitations and blur tradeoffs
#Unity #ShaderGraph #GameDev
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: