Get the latest tech news

How to draw an outline in a video game


🖍️ Explaining multiple techniques for rendering outlines and highlights for real-time applications. This includes vertex object-space as well as screen-space methods. This can be used to render outlines in Unity or Unreal. Outlines can be used for gameplay reasons or aesthetics.

Rendering outlines is a technique that is often used in games either for aesthetic reasons or for supporting gameplay by using it for highlights and selections around an object. This shader implements the fresnel effect and allows us to set the width, power, softness and color of the outline. To resolve this, you can modulate with a mask that is generated from the dot product between the normal vector NNN and the view direction VVV.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of video game

video game

Photo of outline

outline

Related news:

News photo

Putting the mega drive back into Sega: how the company wants to return to creating video game "rock & roll", compared to Nintendo's "pop music"

News photo

COP29 Deal in View With an Outline for Climate Finance Blueprint

News photo

How Fear the Spotlight became Blumhouse's first video game