Searched refs:resLight (Results 1 – 6 of 6) sorted by relevance
| /NW4C-2.0.3/sources/libraries/gfx/ |
| D | gfx_RenderContext.cpp | 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() [all …]
|
| D | gfx_VertexLight.cpp | 130 ResVertexLight resLight = this->GetResVertexLight(); in UpdateDirection() local 132 … if (ut::CheckFlag(resLight.GetFlags(), ResFragmentLightData::FLAG_IS_INHERITING_DIRECTION_ROTATE)) in UpdateDirection() 134 this->CalcInheritingDiretion(this->Direction(), resLight.GetDirection()); in UpdateDirection() 138 this->Direction() = resLight.GetDirection(); in UpdateDirection()
|
| D | gfx_Light.cpp | 142 ResLight resLight = ResDynamicCast<ResLight>(this->GetResSceneObject()); in GetAnimTargetObject() local 143 NW_ASSERT(resLight.IsValid()); in GetAnimTargetObject() 145 ResLightData* ptr = resLight.ptr(); in GetAnimTargetObject()
|
| D | gfx_FragmentLight.cpp | 191 ResFragmentLight resLight = this->GetResFragmentLight(); in UpdateDirection() local 193 … if (ut::CheckFlag(resLight.GetFlags(), ResFragmentLightData::FLAG_IS_INHERITING_DIRECTION_ROTATE)) in UpdateDirection() 195 this->CalcInheritingDiretion(this->Direction(), resLight.GetDirection()); in UpdateDirection() 199 this->Direction() = resLight.GetDirection(); in UpdateDirection()
|
| /NW4C-2.0.3/include/nw/gfx/ |
| D | gfx_ActivateCommand.h | 192 ResFragmentLight resLight = light->GetResFragmentLight(); in ActivateFragmentLight() local 194 …u32 specular0U32 = CommandCacheHelper::MultU32Color(resLight.GetSpecular0U32(), materialColor.Get… in ActivateFragmentLight() 195 …u32 diffuseU32 = CommandCacheHelper::MultU32Color(resLight.GetDiffuseU32(), materialColor.GetDi… in ActivateFragmentLight() 196 …u32 ambientU32 = CommandCacheHelper::MultU32Color(resLight.GetAmbientU32(), materialColor.GetAm… in ActivateFragmentLight() 197 u32 specular1U32 = resLight.GetSpecular1U32(); in ActivateFragmentLight() 209 …specular1U32 = CommandCacheHelper::MultU32Color(resLight.GetSpecular1U32(), materialColor.GetSpecu… in ActivateFragmentLight() 241 ResAmbientLight resLight = light->GetResAmbientLight(); in ActivateFragmentAmbientLight() local 242 …ambientU32 = CommandCacheHelper::MultAddU32Color(resLight.GetAmbientU32(), materialColor.GetAmbien… in ActivateFragmentAmbientLight()
|
| D | gfx_MaterialState.h | 671 ResFragmentLight resLight = light->GetResFragmentLight(); in ActivateFragmentLighting() local 672 s32 lightKind = resLight.GetLightKind(); in ActivateFragmentLighting() 674 …bool twoSideDiffuse = ut::CheckFlag(resLight.GetFlags(), ResFragmentLightData::FLAG_TWO_SIDE_DIFFU… in ActivateFragmentLighting()
|