Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Unity - Fake Point Light

Unity shader asset that lets you create stylized fake lights! · By Lazy Eti

Flashlight vfx

A topic by warpser created 52 days ago Views: 34 Replies: 1
Viewing posts 1 to 2

Hi!

Purchased and appreciate the awesome shader! Thank you! Just a quick question, would is it possible to modify the settings to create a flashlight effect where the beam of light from the light cone stops when it hits another object? 

Developer

Hi! 

As far as I know, this is not easily feasible without more intensive calculation. Unfortunately since the cone light shader is  just a little bonus I threw in the package and not the main feature,  this is a little bit out of the scope of this project.

An alternative solution might be to control the shader parameters using a script that raycasts from the flashlight origin until it collides with something but I haven't tried myself.