MCPcopy Create free account
hub / github.com/GPUOpen-Effects/TressFX / UpdateRenderShadowParameters

Method UpdateRenderShadowParameters

src/TressFXSample.cpp:222–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222void TressFXSample::UpdateRenderShadowParameters(AMD::float4& CameraPos)
223{
224 for (int i = 0; i < m_activeScene.objects.size(); ++i)
225 {
226 // For now, just using distance of camera to 0, 0, 0, but should be passing in a root position for the hair object we want to LOD
227 float Distance = sqrtf(CameraPos.x * CameraPos.x + CameraPos.y * CameraPos.y + CameraPos.z * CameraPos.z);
228 m_activeScene.objects[i].hairStrands->GetTressFXHandle()->UpdateRenderingParameters(&m_activeScene.objects[i].renderingSettings, m_nScreenWidth * m_nScreenHeight * AVE_FRAGS_PER_PIXEL, m_deltaTime, Distance, true);
229 }
230}
231
232void TressFXSample::OnResize(uint32_t width, uint32_t height)
233{

Callers

nothing calls this directly

Calls 2

GetTressFXHandleMethod · 0.80

Tested by

no test coverage detected