• Stars
    star
    243
  • Rank 165,736 (Top 4 %)
  • Language ShaderLab
  • License
    MIT License
  • Created over 1 year ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simple post-processing outline effect that uses depth-based edge detection.

Post-Processing Wireframe/Outlines

Unity Version Unity Pipeline Support (Built-In) Unity Pipeline Support (URP) Unity Pipeline Support (HDRP)

GitHub followers Twitter Follow YouTube Channel Views YouTube Channel Subscribers

A wireframe and outline (2-in-1) effect for Unity that uses depth-based edge detection to render thick, quality post-processing wireframes and outlines. You can control the line thickness, edge detection threshold, colour, and blend state. Unlike the typical edge-detection techniques of using a sobel filter/kernel, we compare depth against the local area average- calculated using what is essentially box blur.

Stars Forks GitHub watchers GitHub repo size GitHub code size in bytes

Preview

Depth.Outlines.Preview.2.mp4
Depth.Outlines.Round.mp4

Compatibility

  • Built-in pipeline.
  • Tested with Unity 2021.3 (LTS).

Installation

You'll find everything under Mirza Beig/Post-Processing-Wireframe-Outlines/...

Usage

Easy as,

  1. Attach these two components to your camera.
  2. Set to render at least 'Depth', and assign the material.

...That's it.

238803119-38e8040a-b09c-4b36-89cc-e14715915fab

You can then tweak the material, for example: to get this automatic per-object line colour look.

238801956-4b456446-d5a9-41d7-a873-281fd68ccab8

Or to render thick, painterly strokes- best used in combination with some kind of stylized surface shader.

image

More Repositories

1

Post-Processing-Scan

A 3D scan/sonar-like post-processing effect for Unity. Essentially a visualization of a spherical signed distance field (SDF).
ShaderLab
830
star
2

GPU-Fog-Particles

Textureless fog particles using a highly customizable shader to attenuate noise values.
GLSL
444
star
3

Anime-Speed-Lines

Post-processing effect to procedurally generate a anime/manga-style vignette of lines typically used to portray speed or surprise.
ShaderLab
253
star
4

Chromatic-Distortion-Sphere

A chromatic distortion sphere shader.
ShaderLab
159
star
5

Animated-Progress-Bar-Shader-Graph

Coloured animated progress bar made in Unity, with Shader Graph.
121
star
6

Wave-Simulator

Interactive wave simulation in Unity.
C#
73
star
7

Boids

Boids AI swarm demo for Unity.
ShaderLab
62
star
8

FPS-Display

A simple but useful script to render the average FPS (and frame ms) over a given duration.
C#
38
star
9

Targeting-Particles-WebGL

A WebGL demo of targeting particles in Unity.
HTML
22
star
10

ParticlePlexusTutorial

Script created during the particle plexus tutorial (https://youtu.be/ruNPkuYT1Ck).
C#
19
star
11

CameraShakeTutorial

Scripts created during the procedural animation camera shake tutorial (https://youtu.be/qFDCz_QW7WY).
C#
19
star
12

FireflySparkleMouseFollowTutorial

Script used in my particle mouse trails tutorial (https://youtu.be/QPzs2pTZ2sQ).
C#
13
star
13

ParticleSeekTutorial

Script from the custom particle system programming tutorial (https://youtu.be/KsT_ZyTv1ms)
C#
10
star
14

InteractiveParticleFirefliesTutorial

Resources for the interactive particle fireflies tutorial (https://youtu.be/41hAlLk8AiQ).
C#
10
star
15

ParticleSeekOptimizedTutorial

Script from the optimized custom particle system programming tutorial (https://youtu.be/R3-mKJZD2Ss).
C#
9
star
16

Boids-WebGL

Boids AI swarm demo for Unity.
HTML
6
star
17

Polar-Coordinates

6
star
18

Animated-Progress-Bar-WebGL

HTML
5
star
19

Animated-Organic-FBM-WebGL

Unity WebGL app rendering an animated, organic fractal pattern (FBM by https://twitter.com/zozuar/).
HTML
4
star
20

Lightning-VFX-WebGL

Unity WebGL demo for the Lightning VFX asset.
HTML
3
star
21

Particle-Distortion-Shockwaves-WebGL

HTML
3
star
22

Cinematic-Explosions-WebGL

HTML
2
star
23

Volumetric-Fog-WebGL

HTML
2
star
24

notionsite

Shell
1
star