Lines Matching refs:resLight

574             ResHemiSphereLight resLight = hemiSphereLight->GetResHemiSphereLight();  in ActivateHemiSphereLight()  local
575 NW_ASSERT(resLight.IsValid()); in ActivateHemiSphereLight()
577 …internal::NWSetVertexUniform4fv(VERTEX_SHADER_UNIFORM_HSLGCOL_INDEX, 1, resLight.GetGroundColor()); in ActivateHemiSphereLight()
578 … internal::NWSetVertexUniform4fv(VERTEX_SHADER_UNIFORM_HSLSCOL_INDEX, 1, resLight.GetSkyColor()); in ActivateHemiSphereLight()
580 math::VEC3 direction(resLight.GetDirection()); in ActivateHemiSphereLight()
581 …if (ut::CheckFlag(resLight.GetFlags(), ResHemiSphereLightData::FLAG_IS_INHERITING_DIRECTION_ROTATE… in ActivateHemiSphereLight()
585 &direction, &hemiSphereLight->TrackbackWorldMatrix(), &resLight.GetDirection()); in ActivateHemiSphereLight()
594 … math::VEC4 directionAndLerp(direction.x, direction.y, direction.z, resLight.GetLerpFactor()); in ActivateHemiSphereLight()
622 ResFragmentLight resLight = light->GetResFragmentLight(); in ActivateFragmentLight() local
623 NW_ASSERT(resLight.IsValid()); in ActivateFragmentLight()
625 s32 lightKind = resLight.GetLightKind(); in ActivateFragmentLight()
651 … if ( ut::CheckFlag(resLight.GetFlags(), ResFragmentLightData::FLAG_DISTANCE_ATTENUATION_ENABLED) in ActivateFragmentLight()
652 && resLight.GetDistanceSampler().IsValid() ) in ActivateFragmentLight()
655 …GraphicsDevice::ActivateFragmentLightDistanceAttnTable(index, resLight.GetDistanceSampler().Derefe… in ActivateFragmentLight()
659 resLight.ref().m_DistanceAttenuationScale, in ActivateFragmentLight()
660 resLight.ref().m_DistanceAttenuationBias ); in ActivateFragmentLight()
676 …NW_ASSERTMSG(resLight.GetAngleSampler().IsValid(), "The spot light must contain angle sampler(look… in ActivateFragmentLight()
677 …NW_ASSERTMSG(resLight.GetAngleSampler().GetSampler().IsValid(), "The spot light must contain angle… in ActivateFragmentLight()
679 if (resLight.GetAngleSampler().IsValid()) in ActivateFragmentLight()
682 …GraphicsDevice::ActivateFragmentLightSpotTable(index, resLight.GetAngleSampler().GetSampler().Dere… in ActivateFragmentLight()
683 …GraphicsDevice::SetLutIsAbs( GraphicsDevice::LUT_TARGET_SP, resLight.GetAngleSampler().GetSampler(… in ActivateFragmentLight()
684 …GraphicsDevice::SetLutInput( GraphicsDevice::LUT_TARGET_SP, resLight.GetAngleSampler().GetInput() … in ActivateFragmentLight()
685 …GraphicsDevice::SetLutScale( GraphicsDevice::LUT_TARGET_SP, resLight.GetAngleSampler().GetScale() … in ActivateFragmentLight()
688 … if ( ut::CheckFlag(resLight.GetFlags(), ResFragmentLightData::FLAG_DISTANCE_ATTENUATION_ENABLED ) in ActivateFragmentLight()
689 && resLight.GetDistanceSampler().IsValid()) in ActivateFragmentLight()
692 …GraphicsDevice::ActivateFragmentLightDistanceAttnTable(index, resLight.GetDistanceSampler().Derefe… in ActivateFragmentLight()
696 resLight.ref().m_DistanceAttenuationScale, in ActivateFragmentLight()
697 resLight.ref().m_DistanceAttenuationBias ); in ActivateFragmentLight()
758 ResVertexLight resLight = light->GetResVertexLight(); in ActivateVertexLight() local
759 NW_ASSERT(resLight.IsValid()); in ActivateVertexLight()
768 resLight.GetAmbient()); in ActivateVertexLight()
772 resLight.GetDiffuse()); in ActivateVertexLight()
774 if (resLight.GetLightKind() == ResVertexLight::KIND_DIRECTIONAL) in ActivateVertexLight()
799 resLight.GetDistanceAttenuationAndEnabled()); in ActivateVertexLight()
801 if (resLight.GetLightKind() == ResVertexLight::KIND_SPOT) in ActivateVertexLight()
809 … math::VEC4 spotFactor(resLight.GetSpotFactor().x, resLight.GetSpotFactor().y, 0.0f, 0.0f); in ActivateVertexLight()
810 if (resLight.GetSpotFactor().y > 0.0f && resLight.GetSpotFactor().y < math::F_PI) in ActivateVertexLight()
812 spotFactor.y = nw::math::CosRad(resLight.GetSpotFactor().y); in ActivateVertexLight()
815 else if (resLight.GetSpotFactor().y == 0.0f) in ActivateVertexLight()