AS
Size: a a a
AS
AR
AS
AR
AS
AR
AR
AS
n
n
n
float Attenuation = max(1.2f * step(1.f, Intensity), max(ShadowIntensity, step(Threshold, Intensity)));
if (Intensity > 1.f) {
Attenuation = 1.2f;
} else if (Intensity > Threshold) {
Attenuation = 1.f;
} else {
Attenuation = ShadowIntensity;
}AS
n
AS
n
n
n
СВ
float Attenuation = max(1.2f * step(1.f, Intensity), max(ShadowIntensity, step(Threshold, Intensity)));
if (Intensity > 1.f) {
Attenuation = 1.2f;
} else if (Intensity > Threshold) {
Attenuation = 1.f;
} else {
Attenuation = ShadowIntensity;
}n
A