「ポイントライトの減衰」の版間の差分

33行目: 33行目:


==Frostbite==
==Frostbite==
EAのゲームエンジン「Frostbite」のパイプライン。
  s = LightSize
  s = LightSize
  attenuation = 1 / pow(max(x, s), 2)
  attenuation = 1 / pow(max(x, s), 2)