You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #ROBOMERGE-SOURCE: CL 10869240 via CL 10869516 via CL 10869902 #ROBOMERGE-BOT: (v613-10869866) [CL 10870584 by ryan durand in Main branch]
30 lines
902 B
C++
30 lines
902 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "LightMapHelpers.h"
|
|
#include "Components.h"
|
|
#include "LocalVertexFactory.h"
|
|
#include "SceneManagement.h"
|
|
|
|
/** Simple implementation for light cache to simulated lightmap behaviour (used for accessing prebaked ambient occlusion values) */
|
|
class FMeshRenderInfo : public FLightCacheInterface
|
|
{
|
|
public:
|
|
FMeshRenderInfo(const FLightMap* InLightMap, const FShadowMap* InShadowMap, FUniformBufferRHIRef Buffer, const FLightmapResourceCluster* InLightmapResourceCluster)
|
|
: FLightCacheInterface()
|
|
{
|
|
SetLightMap(InLightMap);
|
|
SetShadowMap(InShadowMap);
|
|
SetPrecomputedLightingBuffer(Buffer);
|
|
if (InLightmapResourceCluster)
|
|
{
|
|
SetResourceCluster(InLightmapResourceCluster);
|
|
}
|
|
}
|
|
|
|
virtual FLightInteraction GetInteraction(const class FLightSceneProxy* LightSceneProxy) const override
|
|
{
|
|
return LIT_CachedLightMap;
|
|
}
|
|
}; |