Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::CReflectionProbe Class Reference

The object class enables mapping reflection onto the Object. More...

#include <ReflectionProbe/CReflectionProbe.h>

Inheritance diagram for Skylicht::CReflectionProbe:
Skylicht::CComponentSystem Skylicht::IActivatorObject

Public Member Functions

virtual void initComponent ()
virtual void updateComponent ()
virtual CObjectSerializablecreateSerializable ()
virtual void loadSerializable (CObjectSerializable *object)
bool loadStaticTexture (const char *path)
void bakeProbe (CCamera *camera, IRenderPipeline *rp, CEntityManager *entityMgr)
void bakeProbeToFile (CCamera *camera, IRenderPipeline *rp, CEntityManager *entityMgr, const char *outfolder, const char *outname)
video::ITexturegetReflectionTexture ()
u32 getLightLayers ()
void setLightLayers (u32 layers)
Public Member Functions inherited from Skylicht::CComponentSystem
const char * getName ()
virtual void reset ()
virtual void startComponent ()
virtual void endUpdate ()
virtual void onEnable (bool b)
virtual void onUpdateCullingLayer (u32 mask)
void setEnable (bool b)
bool isEnable ()
CGameObject * getGameObject ()
void setEnableSerializable (bool b)
bool isSerializable ()
void addLinkComponent (CComponentSystem *comp)
void removeAllLink ()
Public Member Functions inherited from Skylicht::IActivatorObject
virtual ~IActivatorObject ()
 Virtual destructor for polymorphic activator objects.

Protected Member Functions

void removeBakeTexture ()
void removeStaticTexture ()
Protected Member Functions inherited from Skylicht::CComponentSystem
void setOwner (CGameObject *obj)

Protected Attributes

video::ITexturem_staticTexture
video::ITexturem_bakedTexture
std::string m_staticPath
EReflectionSize m_size
core::dimension2du m_bakeSize
video::ITexturem_bakeTexture [6]
CReflectionProbeDatam_probeData
EReflectionType m_type
video::ITexturem_textureWillRemoved
u32 m_lightLayers
Protected Attributes inherited from Skylicht::CComponentSystem
CGameObject * m_gameObject
bool m_enable
bool m_serializable
std::vector< CComponentSystem * > m_linkComponent

Additional Inherited Members

Static Public Member Functions inherited from Skylicht::CComponentSystem
static int useComponent (CComponentSystem *used)

Detailed Description

The object class enables mapping reflection onto the Object.

CReflectionProbe supports loading reflection images from a texture file, or it can be baked directly from the 3D scene.

You can use Skylicht-Editor to select a texture, bake, or save the baked results to a reflection cube texture.

PBR-shaded materials will select the nearest Reflection Probe

Member Function Documentation

◆ createSerializable()

virtual CObjectSerializable * Skylicht::CReflectionProbe::createSerializable ( )
virtual

Reimplemented from Skylicht::CComponentSystem.

◆ initComponent()

virtual void Skylicht::CReflectionProbe::initComponent ( )
virtual

◆ loadSerializable()

virtual void Skylicht::CReflectionProbe::loadSerializable ( CObjectSerializable * object)
virtual

Reimplemented from Skylicht::CComponentSystem.

◆ updateComponent()

virtual void Skylicht::CReflectionProbe::updateComponent ( )
virtual

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