Skip to content

A free lens flare tool for use with HPS1RP in Unity.

Notifications You must be signed in to change notification settings

DaniArkadia/DaniPSXFlares

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dani's PSX Lens Flares for HPS1RP

Dani's PSX Lens Flares

About

This is little free asset I've made specifically to work with the Haunted PS1 render pipeline for use in Unity. As of writing this the standard implementation of lens flares which Unity provides doesn't work with HPS1RP, so I knocked this together in order to provide that functionality for anyone who desires it. The default implementation of lens flares in Unity seems very unfinished so I also aimed to add some useful features to ensure you can get a result you'll be happy with.

Quick Setup

- MAKE SURE YOU ALREADY HAVE HPS1RP INSTALLED!
  1. Copy the folder into your project's assets folder.
  2. Add two PSXLensFlare components to any GameObject (usually it would be the same as a light source).
  3. Plug in 'TorchSourceConfig' into the first component's field in the inspector. (this is an example of a source flare)
  4. Plug in 'TorchFlareConfig' into the second component's field in the inspector. (this is an example of a standard flare)
  5. Position your camera to face the lens flare source.
  6. Press the play button.
  7. Try messing around with the settings for 'TorchSourceConfig' and 'TorchFlareConfig' to try and acheive different and interesting results.

Tips

  • The code is fairly well commented so if you're unsure about something have a little peek.
  • You can adjust all of the settings in the lens flare assets in realtime while in playmode.
  • You can attach a GameObject with a small BoxCollider to the lens flare GameObject, then set it in the lens flare inspector field. This will mean that the lens flare won't show unless it makes line of sight with this collider (useful if you don't want the effect to work through walls etc.)
  • You don't need to assign a value to the active camera field in the inspector if you don't want to, it will be assigned to Camera.Main if you leave it blank.
  • Create custom lens flare assets by Right-Clicking in the project panel and selecting Create > Effects > Flare Config
  • You can add multiple LensFlare components to the same GameObject in order to achieve different viewing angles or any other custom behavior that is relevant.

Cautions

  • This is ONLY intented for use with the Haunted PS1 Render Pipeline (HPS1RP) maybe it would work with other pipelines or the default ones but I haven't tested it.
  • There may be bugs, as this was thrown together pretty quickly so contact me if you have any issues
  • Right now there isn't any previewing of the effect in the scene view, I will implement this only if there is enough interest as it's not that important for our project.

Contact

Email: [email protected]
IG: @Lord_Arkadia
YT: Dani Arkadia - Survival Revival Games


@Lake_Haven_PS1

About

A free lens flare tool for use with HPS1RP in Unity.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages