nn::gd::CTR::Light::SetDistanceAttenuationScaleBias Member Function| Name | Description | |
|---|---|---|
| in | attenuationScale | Specifies the scale for input values to the distance attenuation lookup table. |
| in | attenuationBias | Specifies the scale for input values to the distance attenuation lookup table. |
Sets the scale and bias for input values to the distance attenuation lookup table. This function is an immediate function. (The immediate function directly generates commands and inserts them into the command buffer.)
The data format inserted into the command buffer is:
0x00000000 scale
0x00000004 [Reserved]
0x00000008 bias
0x0000000c [Reserved]
scale and bias each have 20-bit floating point values. This function converts from a 32-bit floating point format to a 20-bit floating point format.
The default value for both is 0.0f.
CONFIDENTIAL