Santarh / MToon

Toon Shader with Unity Global Illumination

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RenderQueue に要件をつける

Santarh opened this issue · comments

  • Opaque は必ず 2000
  • Cutout は必ず 2450
  • Transparent は 2950 ~ 3000 (デフォルト 3000)
  • TransparentZWrite は 2950 ~ 3000 (デフォルト 2950)

TransparentZWrite は TransparentZWrite 同士の関係に押し込めたい。
Unity が不透明用描画順最適化をしなくなる 2501 から 2600 までに制約したい?

とりあえずこう

  • Opaque -> 2000
  • Cutout -> 2450
  • Transparent -> [2951, 3000] (default: 3000)
  • TransparentZWrite -> [2501, 2550] (default: 2501)