Bokeh Shader (VRChat/被写界深度ブラーシェーダー)
- Digital0 JPY

Below there is an English and Japanese section to accommodate all readers. Please scroll down to the section that is best for you, and I apologise for any issues with the Japanese translation ⸜(>⩊<)⸝♡ すべての方に読んでいただけるよう、下に英語と日本語のセクションを用意しています。 ご自身に合った方をスクロールしてお読みください。日本語の表現に不自然なところがあったらごめんなさい⸜(>⩊<)⸝♡
English (日本語の説明は下にあります)
Bokeh Studio is a post-processing shader that simulates a realistic camera depth-of-field inside of Unity with a lot of customisation options and properties to mimic a real camera. 📷 Please note~ this shader is designed to be used in renders, VRChat photographs, and in Unity and may not be suitable for real-time rendering (depending on your use case). If you are interested in extremely performant real-time bokehs, please see my June Shader (https://luka.moe/june)! 👻 ✨What is a "bokeh"? Basically, if you ever see photographs where the background is blurry (due to the camera focusing on the subject in the foreground) and there's shapes (typically circles) that accentuate the lighting, that's bokeh! 📸What can the bokeh effect do? - Use any shape and texture you want as the bokeh spots with a texture map, 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 Colours). - Local shader features to optimise branches, low quality and high quality mode, dithering, culling, and more! 🖼️ What's in the package? - One shader with five example materials and prefabs - A custom UI with three languages supported (English, German and Japanese) - 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/resell just the package or code, or take credit for it. The P. Anarchy model featured in the thumbnail/preview is by Voidcakes and can be bought on their store page here (https://voidcake.gumroad.com/)! It doesn't come with the package of course, I just use it as my model and thus it always ends up in previews~ please support them! 💌 Hey, listen! Need help setting it up, found a bug, or just have a question? Please reach out! You can find my contacts on my website (https://luka.moe.socials), on Discord at kleineluka, or through email (lukazoeysong@gmail.com)! 💗
日本語
Bokeh Studioは、Unity内でリアルなカメラの被写界深度をシミュレートするポストプロセスシェーダーです。実際のカメラを模倣するための豊富なカスタマイズオプションとプロパティを備えています。📷 ご注意ください〜 このシェーダーは、レンダリング、VRChatの写真撮影、Unity内での使用を想定しており、リアルタイムレンダリングには適さない場合があります(使用ケースによります)。非常に高性能なリアルタイムボケに興味がある場合は、私の「June Shader」(https://luka.moe/june)をご覧ください!👻 ✨「ボケ」とは? 基本的に、写真で背景がぼやけているのを見たことがあるなら(カメラが前景の被写体に焦点を合わせているため)、そして、光を強調する形(通常は円形)がある場合、それが「ボケ」です! 📸ボケ効果で何ができる? - テクスチャマップを使って、ボケの形やテクスチャを自由に設定できます。スプライトシートを使えば、ボケのスポットごとにランダムな形にすることも可能です! - 様々なフォーカスモード(手動深度比較、座標による自動、常時アウトフォーカス)を搭載。 - ボケのサイズ、絞り、近接深度や輝度の影響などを簡単に制御。 - 異なるボケを異なるサイズにし、時間とともにアニメーションさせたり、回転させたりできます。 - フォーカスされた被写体の周囲の縁をきれいにし、ぼかしから非ぼかしへのスムーズな移行を実現。 - 画面全体または画面のタップされた領域のみに適用できる強力なライティングコントロール(トーンマップ、強調、露出、HSV、RGBカラー)。 - ブランチの最適化、低品質・高品質モード、ディザリング、カリングなど、ローカルシェーダー機能も充実! 🖼️パッケージ内容 - 5つのサンプルマテリアルとプレハブを含むシェーダー1点 - 3言語(英語、ドイツ語、日本語)対応のカスタムUI - ボケの形(ハート、星、六角形など)のサンプル画像と、ランダムな形用のサンプルスプライトシート - 上記3言語でのドキュメントと、許諾ライセンス ⭐ライセンスについて - 個人的および商業的な変形作品に再配布できます(クレジット表記が必要です)。 - 変更点を明記すれば、編集可能です〜 - パッケージやコードのみを再配布/再販したり、自身の作品として主張したりすることはできません。 サムネイル/プレビューに登場するP. AnarchyモデルはVoidcakes氏の作品であり、こちらのストアページ(https://voidcake.gumroad.com/)で購入できます!もちろん、このパッケージには含まれていません。私が個人的なモデルとして使用しているため、プレビューに登場しているだけです〜ぜひ彼らをサポートしてください!💌 ねぇねぇ!セットアップで困ってる?バグを見つけた?質問がある?気軽に連絡してね! 連絡方法は、私のウェブサイト(https://luka.moe/socials)、Discord(kleineluka)、またはメール(lukazoeysong@gmail.com)でどうぞ!💗