Flashlight effect
Status: Alpha
Brought to you by:
cwalther
From: James W. <jfc...@ya...> - 2009-10-26 21:58:37
|
Hi all, I've been experimenting with Pipmak a bit, and I was wondering, might it be possible to write a "flashlight effect" function? Here's how I'm thinking it'd work(and this is how it usually does in games, I've checked) Cubic node background has images set that show a lit scene, with a weak light with little falloff. Patches overlaid each of the faces have the same scene, rendered with nearly no light. One patch(a PNG) with a flashlight "ring" on it. The ring area is transparent, no coloration. This patch is set to follow the cursor, and to "cut" through the patches(according to the transparency of the flashlight patch) to the node background. So, thoughts? Thanks, James CW |