XLE  v0.02.0
Classes | Public Types | Public Member Functions | List of all members
SceneEngine::DynamicImposters Class Reference

Prepares imposter "sprites" for objects, and uses them as a stand-in More...

#include <DynamicImposters.h>

Classes

class  Config
 
class  Metrics
 
class  SpriteMetrics
 

Public Types

using SharedStateSet = RenderCore::Assets::SharedStateSet
 
using ModelRenderer = RenderCore::Assets::ModelRenderer
 
using ModelScaffold = RenderCore::Assets::ModelScaffold
 

Public Member Functions

void Render (RenderCore::Metal::DeviceContext &context, RenderCore::Techniques::ParsingContext &parserContext, unsigned techniqueIndex)
 
void Queue (const ModelRenderer &renderer, const ModelScaffold &scaffold, const Float3x4 &localToWorld, const Float3 &cameraPosition)
 
void Reset ()
 
void Load (const Config &config)
 
void Disable ()
 
float GetThresholdDistance () const
 
bool IsEnabled () const
 
Metrics GetMetrics () const
 
RenderCore::Metal::ShaderResourceView GetAtlasResource (unsigned layer)
 
SpriteMetrics GetSpriteMetrics (unsigned spriteIndex)
 
 DynamicImposters (SharedStateSet &sharedStateSet)
 

Detailed Description

Prepares imposter "sprites" for objects, and uses them as a stand-in

Far-off objects can be approximated with sprites (though often a single object may need several sprites for different angles and lighting conditions).

In this case, the sprites are dynamically created as required.


The documentation for this class was generated from the following files: