Flashlight Mask Shader (Mouse & Touch)


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.


by Fantasy Vertex


Price History +

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:

  1. Object Mask Shader – Highlights a specific object within the scene as if lit by a flashlight beam. Ideal for interactive inspection or spotlighting.
  2. 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.