nw::gfx::FragmentLight::Direction Member Function

Syntax

math::VEC3 & Direction();

Arguments

None.

Return Values

The light direction.

Description

Gets the light direction.

Parent node rotation is calculated or copied according to the inheritance flag from m_Direction of the ResLight class by the SceneUpdater function. Use ResLight::SetDirection if Direction is changed before executing SceneUpdaterUpdateTransformNode, or directly edit Direction after executing SceneUpdater.


CONFIDENTIAL