MK Edge Detection - Screen Space Lines Shader View on Asset Store (opens in new tab)

Package details

Latest version
1.5.0
Last updated
First released
Unity version
2021.3.0 or later
Package size
14.6 MB
Files
106
Favorites
471
Views in the past week
107

Price tracking

Last checked
Tracked since
Lowest recorded
$17.97 on

Keywords

MK Edge Detection - Screen Space Lines Shader

by Michael Kremmel (opens in new tab)

5.0 / 5 · 28 ratings

Ratings by stars
Number of ratings for each star rating
5 stars 28
4 stars 0
3 stars 0
2 stars 0
1 star 0

Elevate your game’s visual style with a handcrafted state-of-the-art edge detection shader. MK Edge Detection effortlessly enhances your scene with easy-to-use lines and edges of the highest quality.

Price $59.90

Buy on Asset Store (opens in new tab)

Affiliate link · Purchases support this site

Price history

Last 6 months

USD
Price history for MK Edge Detection - Screen Space Lines Shader, 6 months Current $59.90; lowest $29.95; highest $59.90 in this period. $0 $50 $100 Jun Jul Aug Sep Oct Nov Version 1.4.1B released 31 May 2026 v1.4.1B Version 1.4.2 released 4 Jun 2026 Version 1.4.2B2 released 20 Aug 2026 v1.4.2B2 Version 1.5.0 released 26 Oct 2026 v1.5.0

Asset preview

1 / 24

MK Edge Detection - Screen Space Lines Shader screenshot 1

MK Edge Detection - Screen Space Lines Shader screenshot 1

About this asset

MK Edge Detection is able to combine the creation highest quality edges and lines into an artist-friendly seamless integrated interface. Unlike average edge detection algorithms, this handcrafted, from scratch written shader, is able to detect edges and lines in its own unique way to give your work a special touch and stand out of the crowd.

The shader has a highly versatile application model, which enables you to create any type of screen space lines. Many types of lines are possible - from clean or crisp to artistically blended ones.

If you are looking for an out of the ordinary edge detection, this effect uses an innovative way to create lines.

Demo: WebGL

🔖High-Quality Lines and Edges🔖

Achieve the highest quality lines and edges by effectively merging processed input data from Depth, Normal, and Scene Color. If one set of data fails to detect edges another one is used, whatever provides the best detection. The shader uses a very customized edge detection model that is targeted towards stylization of all kind of scenes. It can handle complex geometry and non-trivial shapes with ease that traditional edge detection can't.

⚖️Reasonable Performance Trade-off⚖️

The shader is designed to always provide a reasonable trade-off in terms of performance and visual aesthetics. By leveraging different kind of precision models and detection kernels, the shader minimizes resource usage, making it suitable for projects of any scale.

🌫️Depth Fade & Fog🌫️

MK Edge Detection is able to work out of the box with fog in any scene and blends in lines and edges based on the fog density and color. Furthermore the fade feature can be enabled to fade in detected edges. This allows edges and lines to gracefully fade in and out, creating smooth transitions providing players with a visually engaging experience.

🟦Pixel Perfection🟦

The rendering directly integrates into the antialiasing of the scene, which allows a pixel-perfect aligned creation of lines. It scales the quality automatically upwards based on your quality settings of the engine and ensures that each detail is sharp and clear, down to the smallest pixel, providing unmatched accuracy and clarity. Furthermore, the effect automatically scales to different resolutions, ensuring consistent visual appearance across all devices.

📱Easy-to-Use Interface📱

Usability was a high priority while making this shader. All functionality is combined into a streamlined and intuitive interface targeted towards artists. You dont have to mess around with multiple viewing angle setups, balance around specific settings or even setup vertex IDs inside your 3D program. Just do the basic setup and see the results. The user-friendly design ensures that you spend less time tweaking and more time creating. Just enable the shader and stylize the effect to fit into your scene.

🚀Other Features🚀

Sketch: This feature gives detected edges a stylized, noisy look.

Pixel Snapping: Rasterization is optimized for pixel precision. Edges increment exactly one pixel per size unit, achieving maximum granularity.

🖱️Seamless Integration🖱️

The package provides components for the following post processing setups:

- Built-in: Legacy Image Effects Pipeline (Component on Rendering Camera)

- Built-in: Post Processing Stack V2

- Universal: Integrated Post Processing API via Scriptable Renderer Feature

- Universal: Scriptable Renderer Feature Only (skip the Post Processing API entirely)

- High Definition: Integrated Post Processing API

This also includes support for Render Graph related setups.

🎮Versatile Applications🎮

MK Edge Detection is perfect for a wide range of game genres and styles. The shader adapts to your artistic vision, providing flexibility and creativity without disrupting your workflow.

🔗Compatibility🔗

There are no limits for the used graphics API. The shader is intended to work across all generic render setups and even XR in all render modes. This includes every possible platform, including pc, consoles, mobile and web. No matter the setup or render pipeline, the effect behaves exactly the same.

🔍Debugging🔍

When needed, detected edges and lines can be visualized. You are able to inspect every part of the render process and from which source, which edge is created or even mixed together. A debugging feature that even your artists can use. This comprehensive kind of debugging can even be used to fine-tune the effect until you maxed out your visual quality.

⚙️Additional Tools⚙️

The package comes with an install wizard to get you started quickly and a shader variant stripping tool to reduce build times and size.

🪜Example Scenes:🪜

MK Edge Detection comes with a variety of example scenes to help you get started quickly and effectively. The example scenes featuring multiple different design ideas and complex geometry including very difficult shapes for edge detection.

💾Updates + Maintenance + Support💾

All of my assets receive updates, are maintained regularly and supported as best as possible.

🌈Do you have some cool stuff to show?

I would love to see your results (high resolution screenshots / videos) using the shader. Just drop me a message.

💡Questions, bug reports, feature requests, feedback or just to say hello💡

Feel free to get in touch via [email protected] at any time.

From the publisher's Asset Store listing.

Technical details

📄Technical Details📄

  • From scratch & hand-written shader
  • Focused on a perfect trade-off in terms of quality and performance
  • Compatibility, usability, flexibility stability are high priorities
  • In the package are some core DLL files included. Why? Because its way easier for me to update internal libraries.
  • The package was created using a custom shader parser. Meaning custom modification can be difficult. If you have any specific use case feel free to reach out at any time!
  • Post Processing is never for free in terms of performance on weak devices.

📄Limitations📄

  • The internal library of MK Edge Detection currently depends on the Built-in VR Package (mainly compatibility reasons to always provide the correct render targets).
  • MK Edge Detection is injected right after opaque geometry is rendered. This means transparent objects can’t be supported.
  • Using the Universal Render Pipeline 2D renderer only the scene color input is possible, because there is no depth or normal texture being rendered.
  • More specific limitations lined out on the trello board
  • Using Legacy Image Effects, there is no "Before Transparents" queue or a similar mechanism for effects to differentiate between opaque and transparent geometry. This means you will see transparent objects overwritten by the opaque edges.
  • Using Post Processing Stack v2, only Multi Pass is supported for XR. The reason for this is that the Post Processing Stack v2 API does not work properly with "Before Transparents" queued effects (Once the API is getting fixed, MK Edge Detection will be updated of course).

Compatibility

Render pipelines supported in each Unity version
Unity version Built-in URP HDRP
2022.3.0f1 Compatible Compatible Compatible
2021.3.0f1 Compatible Compatible Compatible

Supported render pipelines:

- Built-in: Legacy Image Effects Pipeline (Component on Rendering Camera)

- Built-in: Post Processing Stack V2

- Universal: Integrated Post Processing API via Scriptable Renderer Feature

- Universal: Scriptable Renderer Feature Only (skip the Post Processing API entirely)

URP 2D: Scene Color Only

- High Definition: Integrated Post Processing API

⤴️NEW! Unity 7 Ready

As listed on the Asset Store.