DoLightAttenuation(3D) — Stardent Computer Inc. (\*(Dd)
NAME
DoLightAttenuation − Create a light attribute object defining light intensity falloff with distance
SYNOPSIS
C:
DtObject DoLightAttenuation(c1, c2)
DtReal c1;
DtReal c2;
Fortran:
INTEGER∗4 DOLTA(C1, C2)
REAL∗8 C1
REAL∗8 C2
DESCRIPTION
DoLightAttenuation creates a light studio attribute object that defines a multiplicative factor modifying the light intensity as a function of the distance from the light source. The parameters c1 and c2 are constants used to calculate this factor: attn = 1. / (c1 + c2∗distance) The DoLightAttenuation attribute defines the light attenuation for lights of type DcLightPointAttn <DCLTPA> and DcLightSpotAttn <DCLTSA>.
ERRORS
DEFAULTS
The default DoLightAttenuation is (1., 1.).
SEE ALSO
DoLightSpreadAngles(3D), DoLightSpreadExp(3D) DoLightType(3D)
September 29, 2021