float atten(float attenuation, float distance)
減衰フォールオフを計算します。
この関数は、 ‹減衰› / (‹減衰› + ‹距離›)
と等価です。
light |
|
math |
|
shading |
|