A downloadable tool

Download NowName your own price

The Inverse Hull technique is a common way to draw outlines, however it fails on any mesh with sharp edges. Inverse Hull Fix calculates smooth normals for the mesh and stores them in the vertex tangents. This way they can later be used in place of normals in your outline shader.

To use Inverse Hull Fix:

Select "Window" > "Inverse Hull Fix"

Assign your mesh to fix.

Click "Fix."

A modified mesh will be saved to the assets folder. The original asset will not be modified. This may take several minutes for more complex models.

Your inverse hull outline shader pass will need to be modified to use tangents where it previously used normals.

Two example shaders are included. As these are not multi-pass shaders, you must add a second material to your mesh renderer or skinned mesh renderer to use them as outlines. The example shaders are not recommended for production use.

Normal mapping will not be possible on the modified mesh as the tangents are being repurposed.

Tangents are used instead of another vertex data channel for compatibility with skinned mesh renderers.

Discontinuities in the mesh may cause the tool to fail.

Download

Download NowName your own price

Click download now to get access to the following files:

InverseHullFix-2024-09-6--00-07-50.unitypackage 9.4 kB

Leave a comment

Log in with itch.io to leave a comment.