MCPcopy Create free account
hub / github.com/carbonengine/trinity / RenderFogIntoReflectionMap

Method RenderFogIntoReflectionMap

trinity/Tr2VolumetricsRenderer.cpp:519–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519Tr2GpuResourcePool::Texture Tr2VolumetricsRenderer::RenderFogIntoReflectionMap(
520 Tr2RenderContext& renderContext,
521 Tr2GpuResourcePool& gpuResourcePool,
522 uint32_t width,
523 uint32_t height,
524 const Vector3& sunDirection,
525 const Color& sunColor,
526 const Vector3d origin,
527 const Matrix& view,
528 const Matrix& projection )
529{
530 auto fog = RenderFog( m_fogReflectionResources, renderContext, gpuResourcePool, width, height, nullptr, nullptr, ShadowQuality::SHADOW_DISABLED, sunDirection, sunColor, origin, Vector3d( 0, 0, 0 ), view, projection, view, projection );
531 if( !fog.IsValid() )
532 {
533 return GetEmptyFogTexture( gpuResourcePool );
534 }
535 return fog;
536}
537
538Tr2GpuResourcePool::Texture Tr2VolumetricsRenderer::GetEmptyFogTexture( Tr2GpuResourcePool& gpuResourcePool )
539{

Callers 1

RenderReflectionPassMethod · 0.80

Calls 2

Vector3dClass · 0.50
IsValidMethod · 0.45

Tested by

no test coverage detected