Collider Based Object Fade

Ifooboo

(5)
$4
Publisher Ifooboo
File size 6.80MB
Number of files 52
Latest version 1
Latest release date 2024-05-16 02:43:29
First release date 2021-12-26 11:11:15
Supported Unity versions 2018.4.2 or higher
Distance-based shaders use the center or pivot of an object to calculate the distance between two points. While this is sufficient for cubes and spheres, problems arise when objects have uneven dimensions.

These problems can be solved by using the point on an object's collider closest to the scene's camera. The script provided in this package does just that - thus saving you hours of development time by removing the need to adjust material properties for all your objects.

• Includes shader for the Built-In Render Pipeline.

• Includes packages for HDRP and URP compatibility.

• Uses dithering to save performance and preserve depth information.