View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0
- Last updated
- First released
- Unity version
- 6000.0.39 or later
- Package size
- 598 KB
- Files
- 27
- Favorites
- 2
- Views in the past week
- 10
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $4.99 on
Keywords
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.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 4
Flashlight Mask Shader (Mouse & Touch) screenshot 1
About this asset
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.
From the publisher's Asset Store listing.
Technical details
- Render Pipeline Compatibility:
Built-in Render Pipeline, URP
- Shaders:
InputMaskObjectColor.shader
InputMaskAllColor.shader
- Input Handling:
Mobile: Touch position
PC: Mouse position
- Platform Support:
Android
Desktop
- Scenes Included:
MaskObjectScene.unity
MaskAllScene.unity
- Performance:
No additional lights or post-processing required
Optimized for mobile devices
- Documentation: Included in README
Compatibility
| Unity version | Built-in | URP | HDRP |
|---|---|---|---|
| 6000.0.39f1 | Compatible | Compatible | Not listed |
As listed on the Asset Store.