nn::gr::CTR::FragmentLight::Source::SetPosition Member Function

Syntax

void SetPosition(
     const f32 position_x,
     const f32 position_y,
     const f32 position_z,
     const bool is_infinity
);

Arguments

Name Description
in position_x X-coordinate of the light to be set.
in position_y Y-coordinate of the light to be set.
in position_z Z-coordinate of the light to be set.
in is_infinity Set to true if the position stretches to infinity.

Return Values

None.

Description

Configures the light position. Converts the set value to a 16-bit floating point number used to set the rendering command and stores it.


CONFIDENTIAL