VR空間のプロダクト専門ECサイト Vket Store
VR空間のプロダクト専門ECサイト Vket Store


    公開日 : 2020/12/18 21:01:57


    深度バッファを使用して光と霧のエフェクトを作ります。シーン内に適切に霧を設置すれば深みのある雰囲気が出るでしょう。これらのボリュメトリックエフェクトはあらゆるVRシーンを洗練し、深みを与えます。 (申し訳ありませんが、この説明は現在英語のみです) To install, place the Shader/ folder with the shader into your Assets/ directory. Licensed under the MIT license. https://gitlab.com/s-ilent/fake-lights For support or feedback, you can join the Discord. https://discord.gg/uHJx4g629K Usage Provided in this package are: - The main Volumetric Fake Lights shader. - An inverted icosphere mesh, used to render the lights. - A sample prefab and material for a single fake light. - A sample material for a particle system. If not using the prefab, drag the icosphere into your scene and assign it a material with one of the Fake Light shaders. Note that, like other shaders which depend on the depth buffer, you'll need a directional light or other depth buffer activator (like disabled depth of field) to see the effect properly. For best batching results, give each material a different render queue. Materials on the same queue render in order of their distance from the camera. Unity will not instance them if they aren't rendered in groups of the same material.


    MIT License Copyright (c) 2019 s-ilent Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.