Skip to content

Instantly share code, notes, and snippets.

@hrpnx
Last active May 17, 2025 03:28
Show Gist options
  • Save hrpnx/052214218aa3eebaa441e7efd59f6e71 to your computer and use it in GitHub Desktop.
Save hrpnx/052214218aa3eebaa441e7efd59f6e71 to your computer and use it in GitHub Desktop.
Li MaterialModifier を使って Light Limit 等の値をアバター内で統一する方法

Li MaterialModifier とは

https://lilxyzw.github.io/lilycalInventory/ja/docs/components/materialmodifier.html

ビルド時にアバターに含まれる全マテリアルにコピー元のマテリアルの設定値をコピーします。アニメーションによって差し替えられるマテリアルについても処理が行われます。

手順

  1. 任意の GameObject (例: アバターのルート) の Inspector を開く
  2. Add Component > Li MaterialModifier
  3. 「コピー元のマテリアル」に体に設定している肌マテリアルを指定
  4. 「プロパティ」に以下を追加
    • _AsUnlit
    • _VertexLightStrength
    • _LightMinLimit
    • _LightMaxLimit
    • _MonochromeLighting
    • _BeforeExposureLimit
    • _lilDirectionalLightStrength

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment