Version: 2019.3
Experimental: this API is experimental and might be changed or removed in the future.

FalloffType.InverseSquaredNoRangeAttenuation

マニュアルに切り替える

説明

Inverse squared distance falloff model (without smooth range attenuation).

This is a physically based falloff model for point and spot lights. The falloff model falls off with the inverse squared distance between the light and the point being shaded. This means that observed light is very bright when the surface is close to the light and falls off rapidly as the distance increases.

This is fundamentally different from non physically based falloff models. When switching to this falloff model the intensity takes on a physical unit and a much higher value is typically needed in order to see the effect of the light. A light with 1 lumens is very dim.

The distance is in Unity units (metric: 1 = 1m). The falloff is only defined within the range of the light and sharply falls off to zero at the light range. Please use FalloffType.InverseSquared if you observe artifacts due to the sharp cutoff at the light range. The minimum distance used for the calculation is 1cm in order to avoid numerical issues.