#include "nw4r/g3d.h" // IWYU pragma: export namespace nw4r { namespace g3d { void ResAnmAmbLight::GetAnmResult(AmbLightAnmResult *pResult, f32 frame) const { const ResAnmAmbLightData &r = ref(); u32 flags = r.flags; bool constant = (flags & ResAnmAmbLightData::FLAG_CONST) != 0; const ResAnmScnInfoData &rInfoData = ofs_to_ptr(r.toResAnmScnData)->info; f32 clippedFrame = detail::ClipFrame(rInfoData, frame); pResult->flags = flags & (AmbLightAnmResult::FLAG_COLOR_ENABLE | AmbLightAnmResult::FLAG_ALPHA_ENABLE); pResult->color = detail::GetResColorAnmResult(&r.color, clippedFrame, constant); } } // namespace g3d } // namespace nw4r