SetSpotDirection

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

Syntax

void SetSpotDirection(
     const f32 & spot_direction_x,
     const f32 & spot_direction_y,
     const f32 & spot_direction_z
);

Arguments

Name Description
in spot_direction_x X value for the spotlight direction to be set.
in spot_direction_y Y value for the spotlight direction to be set.
in spot_direction_z Z value for the spotlight direction to be set.

Return Values

None.

Description

Sets the spotlight light direction. Converts the set value to a 13-bit fixed point number used to set the rendering command and stores it.


CONFIDENTIAL