Lightmap Quality Regions
- Normalダウンロード商品¥ 0
- Normal (Donation/寄付)ダウンロード商品¥ 1,000

Box Collider内のオブジェクトのLightmap Resolutionを指定した値に設定できるUnity用アドオン。 An addon for Unity that lets you define Box Colliders that set the relative lightmapping quality of objects within them to a specified value. To install, place the LightmapQualityRegions/ folder with the scripts into your Assets/ directory.
使用方法
1. シーンに新しいGameObjectを作成します。Lightmap Quality RegionsとBox Colliderコンポーネントを追加します。TagをEditorOnlyに設定します。 2. クオリティを設定したいエリアをBox Colliderでカバーします。Is Triggerを有効にします。 3. Lightmap Quality Regionの設定を行います。 * Lightmap Scale: 個々のオブジェクトに適用されるもの。 ライトマップ品質領域の外側の領域は、スケールが0に設定されることに注意してください。 ライトマップを作成したい場所に配置してください。 (または、本当に大きな箱を作るといいでしょう。) * Use Scale Ratio: オブジェクトのサイズによってスケールを調整します。 * Require Containment: 縮尺設定を適用するのは、ボックス内のオブジェクトのみであり、ボックス内で交差するオブジェクトには適用されません。 例えば、建物のために大きなメッシュがあり、その上に多くの小さなオブジェクトがある場合、建物とオブジェクトの両方が、それらに触れる領域の影響を受けます。しかし、 Require Containment を使用すると、建物の上部をカバーし、その上のオブジェクトのみに影響を与えることができます。 4.Toolsメニューで、Apply Lightmap Quality Regions を選択して設定を適用します。 www.DeepL.com/Translator(無料版)で翻訳しました。
Usage
1. Create a new GameObject in your scene. Add Lightmap Quality Regions and Box Collider components. Set the Tag to EditorOnly. 2. Set the Box Colliders to cover the areas you want to set the quality of. Make sure that they are set as Triggers. 3. Set the settings on the Lightmap Quality Region. * Lightmap Scale is what will be applied to individual objects. Note that areas without quality regions will be set to a scale of 0, so you'll want to cover your scene with boxes where you want lightmapping. (Or make a really big box.) * Use Scale Ratio will change the final scale set to objects based on their size. * Require Containment will only apply the scale setting to objects within the box, rather than objects intersecting it. For example, if there is a large mesh for a building and many smaller objects on it, both the building and the objects will be affected by a region touching them. However, with Require Containment, you can cover the top of the building and only affect the objects on it. 4. In the Tools menu, select Apply Lightmap Quality Regions to apply the settings. Note that you can also place Lightmap Quality Regions on individual GameObjects to override their settings.
License
You can access the development repository of the shader at https://gitlab.com/s-ilent/lightmap-quality-regions This work is licensed under the MIT license. https://gitlab.com/s-ilent/lightmap-quality-regions/-/blob/master/LICENSE For support or feedback, you can join the Discord. https://discord.gg/uHJx4g629K