AR Occlusion And UI Mask Shader is a lightweight Unity plugin for realistic AR depth occlusion and smooth alpha-based UI masking. Invisible occluders and clean edge masking made simple.AR Occlusion And UI Mask Shader is a lightweight Unity plugin that gives you full control over realistic AR depth occlusion and smooth UI masking — all in one simple package.AR Occlusion ShaderCreate natural and realistic AR experiences by properly hiding virtual objects behind real-world meshes like head, hands, legs, or any custom occluder — while keeping the occluder completely invisible.Perfect for:AR Sunglass Try-OnHand interaction and grabbing effectsVirtual clothing & accessoriesMixed Reality applicationsDemo scenes included to help you configure quickly and easily.UI Mask ShaderUnlike Unity’s default stencil-based mask that can produce hard or pixelated edges, this shader uses alpha transparency to create smooth, clean masking effects.Ideal for:Circular profile imagesCustom-shaped UI elementsModern mobile UI designGame HUD and menus✨ Key FeaturesInvisible depth-based occlusionSmooth alpha-based UI maskingNo stencil artifactsEasy prefab-based setupWorks with Built-in, URP, and HDRPNo external dependenciesIf you're building AR try-on apps, interactive AR experiences, or polished UI systems, this plugin helps you achieve realistic rendering and clean visuals with minimal effort.Unity Version: 2021.3 or laterPlatforms: Android, iOS, Windows, macOSRender Pipelines: Built-in, URP, HDRPDependencies: NoneDemo Scenes: IncludedAR Occlusion ShaderWorks with any Mesh RendererCompatible with AR FoundationMobile-optimizedIncludes: Occlusion Material, OcclusionController Prefab, Demo scenes (Head, Hand, Leg).UI Mask ShaderUses alpha channel masking (no stencil buffer)Smooth, anti-aliased edgesWorks with Unity uGUI ImageLightweight and mobile-friendlyDesigned for fast integration, realistic AR depth handling, and clean professional UI masking.This package includes documentation and promotional materials generated with AI assistance (ChatGPT, DALL·E). All scripts, logic, and core functionality were manually developed by the author.




