Gita Assets
Unity / VFX

Unity3D MK Edge Detection V1.2.0B Edge Detection Shader

Overview

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.
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.
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

Key features

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
The package was created using a custom shader parser. Meaning custom modification can be difficult. 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.
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

Supplied version on this site: 1.5.0. Actual support is based on this supplied version; current official specifications are for reference only and do not promise that this version includes later updates.
Unity 2022.3.0f1: Built-in supported, URP supported, HDRP supported.
Unity 2021.3.0f1: Built-in supported, URP supported, HDRP supported.
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

Render pipeline compatibility

UnityBuilt-inURPHDRP
2022.3.0f1
2021.3.0f1

Technical specifications

Original creator
Michael Kremmel
Current official version
1.5.0
Supported engines
2021.3.0, 2022.3.0, 2021.3.0f1, 2022.3.0f1
Render pipelines
2021.3.0f1 · Built-in / HDRP / URP; 2022.3.0f1 · Built-in / URP / HDRP
Official file size
14.60 MB
Official update date
2026-10-26
Asset file count
106
Package format
unitypackage
First official release
2024-05-26

Tags

Full description

MK Edge Detection combines the creation of high-quality edges and lines into an artist-friendly, seamlessly integrated interface. Unlike average edge detection algorithms, this handcrafted shader, written from scratch, detects edges and lines in its own unique way to give your work a special touch and help it stand out from 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 out-of-the-ordinary edge detection, this effect uses an innovative way to create lines. 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 kinds of scenes. It can handle complex geometry and non-trivial shapes with ease that traditional edge detection cannot. 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 kinds of precision models and detection kernels, the shader minimizes resource usage, making it suitable for projects of any scale. Depth Fade and 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 and 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 a 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 do not have to mess around with multiple viewing angle setups, balance around specific settings, or even set up 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 each 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 have 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 feature multiple different design ideas and complex geometry, including very difficult shapes for edge detection. Updates, Maintenance and Support All assets receive updates, are maintained regularly and supported as best as possible. Technical Details From scratch and hand-written shader. Focused on a perfect trade-off in terms of quality and performance. Compatibility, usability, flexibility and stability are high priorities. In the package are some core DLL files included. Why? Because it is way easier to update internal libraries. The package was created using a custom shader parser. This means custom modification can be difficult. 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 for compatibility reasons to always provide the correct render targets). MK Edge Detection is injected right after opaque geometry is rendered. This means transparent objects cannot 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. 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 fixed, MK Edge Detection will be updated). 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

Ratings and reviews

You can rate and review this item after purchase.

No buyer reviews yet.

Unity3D MK Edge Detection V1.2.0B Edge Detection Shader · Unity VFX · Preview 3Unity3D MK Edge Detection V1.2.0B Edge Detection Shader · Unity VFX · Preview 4Unity3D MK Edge Detection V1.2.0B Edge Detection Shader · Unity VFX · Preview 5Unity3D MK Edge Detection V1.2.0B Edge Detection Shader · Unity VFX · Preview 6
Contact support