
Flashlight Mask Shader (Mouse & Touch) is a lightweight Unity asset with two shaders for simulating flashlight effects. Supports mouse (PC) and touch (mobile). Includes two demo scenes.Flashlight Mask Shader (Mouse & Touch) provides a simple yet effective way to simulate a flashlight effect using shader-based masking. This asset includes two distinct shaders:Object Mask Shader – Highlights a specific object within the scene as if lit by a flashlight beam. Ideal for interactive inspection or spotlighting.Full-Screen Mask Shader – Simulates a flashlight beam moving across a dark environment. Great for exploration, horror, or mystery game settings.Key features:Flashlight mask follows mouse (PC) or touch position (mobile).Fully shader-based, no lights or additional cameras required.Works in both 2D and 3D environments.Mobile-friendly, with minimal performance overhead.Includes two demo scenes:Object Spotlight Scene: Demonstrates object-specific illumination.Environment Exploration Scene: Showcases spatial flashlight movement in a dark environment.Render Pipeline Compatibility: Built-in Render Pipeline, URPShaders:InputMaskObjectColor.shaderInputMaskAllColor.shaderInput Handling:Mobile: Touch positionPC: Mouse positionPlatform Support:AndroidDesktopScenes Included:MaskObjectScene.unityMaskAllScene.unityPerformance:No additional lights or post-processing requiredOptimized for mobile devicesDocumentation: Included in README