Lines Matching refs:resLight

572             ResHemiSphereLight resLight = hemiSphereLight->GetResHemiSphereLight();  in ActivateHemiSphereLight()  local
573 NW_ASSERT(resLight.IsValid()); in ActivateHemiSphereLight()
575 …internal::NWSetVertexUniform4fv(VERTEX_SHADER_UNIFORM_HSLGCOL_INDEX, 1, resLight.GetGroundColor()); in ActivateHemiSphereLight()
576 … internal::NWSetVertexUniform4fv(VERTEX_SHADER_UNIFORM_HSLSCOL_INDEX, 1, resLight.GetSkyColor()); in ActivateHemiSphereLight()
578 math::VEC3 direction(resLight.GetDirection()); in ActivateHemiSphereLight()
579 …if (ut::CheckFlag(resLight.GetFlags(), ResHemiSphereLightData::FLAG_IS_INHERITING_DIRECTION_ROTATE… in ActivateHemiSphereLight()
583 &direction, &hemiSphereLight->TrackbackWorldMatrix(), &resLight.GetDirection()); in ActivateHemiSphereLight()
592 … math::VEC4 directionAndLerp(direction.x, direction.y, direction.z, resLight.GetLerpFactor()); in ActivateHemiSphereLight()
620 ResFragmentLight resLight = light->GetResFragmentLight(); in ActivateFragmentLight() local
621 NW_ASSERT(resLight.IsValid()); in ActivateFragmentLight()
623 s32 lightKind = resLight.GetLightKind(); in ActivateFragmentLight()
649 … if ( ut::CheckFlag(resLight.GetFlags(), ResFragmentLightData::FLAG_DISTANCE_ATTENUATION_ENABLED) in ActivateFragmentLight()
650 && resLight.GetDistanceSampler().IsValid() ) in ActivateFragmentLight()
653 …GraphicsDevice::ActivateFragmentLightDistanceAttnTable(index, resLight.GetDistanceSampler().Derefe… in ActivateFragmentLight()
657 resLight.ref().m_DistanceAttenuationScale, in ActivateFragmentLight()
658 resLight.ref().m_DistanceAttenuationBias ); in ActivateFragmentLight()
674 …NW_ASSERTMSG(resLight.GetAngleSampler().IsValid(), "The spot light must contain angle sampler(look… in ActivateFragmentLight()
675 …NW_ASSERTMSG(resLight.GetAngleSampler().GetSampler().IsValid(), "The spot light must contain angle… in ActivateFragmentLight()
677 if (resLight.GetAngleSampler().IsValid()) in ActivateFragmentLight()
680 …GraphicsDevice::ActivateFragmentLightSpotTable(index, resLight.GetAngleSampler().GetSampler().Dere… in ActivateFragmentLight()
681 …GraphicsDevice::SetLutIsAbs( GraphicsDevice::LUT_TARGET_SP, resLight.GetAngleSampler().GetSampler(… in ActivateFragmentLight()
682 …GraphicsDevice::SetLutInput( GraphicsDevice::LUT_TARGET_SP, resLight.GetAngleSampler().GetInput() … in ActivateFragmentLight()
683 …GraphicsDevice::SetLutScale( GraphicsDevice::LUT_TARGET_SP, resLight.GetAngleSampler().GetScale() … in ActivateFragmentLight()
686 … if ( ut::CheckFlag(resLight.GetFlags(), ResFragmentLightData::FLAG_DISTANCE_ATTENUATION_ENABLED ) in ActivateFragmentLight()
687 && resLight.GetDistanceSampler().IsValid()) in ActivateFragmentLight()
690 …GraphicsDevice::ActivateFragmentLightDistanceAttnTable(index, resLight.GetDistanceSampler().Derefe… in ActivateFragmentLight()
694 resLight.ref().m_DistanceAttenuationScale, in ActivateFragmentLight()
695 resLight.ref().m_DistanceAttenuationBias ); in ActivateFragmentLight()
756 ResVertexLight resLight = light->GetResVertexLight(); in ActivateVertexLight() local
757 NW_ASSERT(resLight.IsValid()); in ActivateVertexLight()
766 resLight.GetAmbient()); in ActivateVertexLight()
770 resLight.GetDiffuse()); in ActivateVertexLight()
772 if (resLight.GetLightKind() == ResVertexLight::KIND_DIRECTIONAL) in ActivateVertexLight()
797 resLight.GetDistanceAttenuationAndEnabled()); in ActivateVertexLight()
799 if (resLight.GetLightKind() == ResVertexLight::KIND_SPOT) in ActivateVertexLight()
807 … math::VEC4 spotFactor(resLight.GetSpotFactor().x, resLight.GetSpotFactor().y, 0.0f, 0.0f); in ActivateVertexLight()
808 if (resLight.GetSpotFactor().y > 0.0f && resLight.GetSpotFactor().y < math::F_PI) in ActivateVertexLight()
810 spotFactor.y = nw::math::CosRad(resLight.GetSpotFactor().y); in ActivateVertexLight()
813 else if (resLight.GetSpotFactor().y == 0.0f) in ActivateVertexLight()