Bokeh Studio (Depth Blur) for VRChat and Unity
Henlo all! This is an old study of mine that lets you create that camera depth-of-field effect but with a ton of customisation options (ex. shape of the blur) and realistic properties (ex. focal length). Like any of my other old projects, it may not be up to my current standards, but I wanted to release it for free for anybody who wanted it! 📷
A quick note: This shader is designed to be used in renders, VRChat photographs, and in Unity and is not suitable for a real-time post-processing stack (bokeh studio is quite intensive). If you are interested in real-time bokehs, please see my June Shader! 👻
🖼️What can the Bokeh do?
- Use any shape and texture you want as the bokeh spots
- You can even use a spritesheet so each bokeh spot is a random shape!
- Various focal modes (manual depth comparison, automatic at coordinate, and always out-of-focus).
- Easy control over shape size, aperture, up-close depth and luminescence influences, and more~
- Make different bokehs different sizes that animate over time as well as rotate over time.
- Clean the edges around the focused subject to have a clean transition from blur to non-blurred.
- Powerful lighting controls for either the whole screen or just the tapped areas of the screen (tonemap, accentuate, expose, HSV, RGB Colors).
- Local shader features to optimize branches, low quality and high quality mode, dithering, culling, and more!
🍱 What's in it?
- One shader with five example materials and prefabs
- A custom UI with three languages supported (English, Deutsch, and 日本語)
- Sample images for your bokeh shapes (hearts, stars, hexagons, etc.) as well as a sample spritesheet for random shapes
- Documentation (in the three aforementioned languages) and a permissible license
🧐What is the license?
- You can redistribute it in transformative works both personally and commercially (with attribution).
- You may edit it as a long as you make note of the changes.
- You may not simply redistribute the package or code, or take credit for it.
If you have questions, feel free to reach out to me through Discord or Email (both of which can be found on my website here! Thank you for reading and have a great day 🌈
Bokeh Studio Unity Package