|
| ParallaxCorrectedCubemapAuto (IdType id, Root *root, SceneManager *sceneManager, const CompositorWorkspaceDef *probeWorkspaceDef) |
|
| ~ParallaxCorrectedCubemapAuto () |
|
virtual TextureGpu * | _acquireTextureSlot (uint16 &outTexSlot) |
| Acquires a texture with a given slot.
|
|
virtual void | _addManuallyActiveProbe (CubemapProbe *probe) |
|
virtual void | _copyRenderTargetToCubemap (uint32 cubemapArrayIdx) |
|
virtual void | _notifyPreparePassHash (const Matrix4 &viewMatrix) |
|
virtual void | _releaseManualHardwareResources () |
|
virtual void | _releaseTextureSlot (TextureGpu *texture, uint32 texSlot) |
|
virtual void | _removeManuallyActiveProbe (CubemapProbe *probe) |
|
virtual void | _restoreManualHardwareResources () |
|
void | _setIsRendering (bool bIsRendering) |
|
void | _setProbeRenderInProgress (CubemapProbe *probe) |
|
virtual void | allWorkspacesBeforeBeginUpdate (void) |
| Called from CompositorManager2 (not CompositorWorkspace) when we're about to begin updating all the workspaces.
|
|
virtual void | allWorkspacesBeginUpdate (void) |
| Called from CompositorManager2 (not CompositorWorkspace) when we're about to update all the workspaces (it's safe to update your own workspaces without calling _beginUpdate and _endUpdate) Warning: Don't add/remove listeners to CompositorManager2 inside this function.
|
|
CubemapProbe * | createProbe (void) |
| Adds a cubemap probe.
|
|
virtual void | destroyAllProbes (void) |
|
virtual void | destroyProbe (CubemapProbe *probe) |
|
virtual void | eventOccurred (const String &eventName, const NameValuePairList *parameters) |
| A rendersystem-specific event occurred.
|
|
virtual void | fillConstBufferData (const Matrix4 &viewMatrix, float *RESTRICT_ALIAS passBufferPtr) const |
|
virtual TextureGpu * | findIbl (const TextureGpu *baseParams) |
|
virtual TextureGpu * | findTmpRtt (const TextureGpu *baseParams) |
| See mTmpRtt.
|
|
virtual bool | frameEnded (const FrameEvent &evt) |
| Called just after a frame has been rendered.
|
|
virtual bool | frameRenderingQueued (const FrameEvent &evt) |
| Called after all render targets have had their rendering commands issued, but before render windows have been asked to flip their buffers over.
|
|
virtual bool | frameStarted (const FrameEvent &evt) |
| Called when a frame is about to begin rendering.
|
|
bool | getAutomaticMode (void) const |
|
TextureGpu * | getBindTexture (void) const |
|
const HlmsSamplerblock * | getBindTrilinearSamplerblock (void) |
|
virtual size_t | getConstBufferSize (void) |
|
const CompositorWorkspaceDef * | getDefaultWorkspaceDef (void) const |
|
bool | getEnabled (void) const |
|
uint32 | getIblTargetTextureFlags (PixelFormatGpu pixelFormat) const |
|
IdType | getId () const |
| Get the unique id of this object.
|
|
ParallaxCorrectedCubemapAutoListener * | getListener (void) const |
|
const CubemapProbeVec & | getProbes (void) const |
|
SceneManager * | getSceneManager (void) const |
|
bool | getUseDpm2DArray (void) const |
|
bool | isRendering (void) const |
| Inform whether we're currently updating a probe.
|
|
bool | operator() (const IdObject &left, const IdObject &right) |
|
bool | operator() (const IdObject *left, const IdObject *right) |
|
virtual void | passEarlyPreExecute (CompositorPass *pass) |
| Called early on in pass' execution.
|
|
virtual void | passPosExecute (CompositorPass *pass) |
| Called after a pass has been executed.
|
|
virtual void | passPreExecute (CompositorPass *pass) |
| Called when each pass is about to be executed.
|
|
virtual void | passSceneAfterFrustumCulling (CompositorPassScene *pass) |
| Called after a pass scene has performed frustum caulling but has yet to prepare and execute rendering commands.
|
|
virtual void | passSceneAfterShadowMaps (CompositorPassScene *pass) |
| Called after a pass scene has rendered shadow casting (it gets called even if there is no shadow node).
|
|
virtual void | prepareForClearScene (void) |
| Destroys the Proxy Items.
|
|
virtual void | releaseIbl (const TextureGpu *tmpRtt) |
|
virtual void | releaseTmpRtt (const TextureGpu *tmpRtt) |
|
virtual void | restoreFromClearScene (void) |
|
void | setEnabled (bool bEnabled, uint32 width, uint32 height, uint32 maxNumProbes, PixelFormatGpu pixelFormat) |
| Enables/disables this ParallaxCorrectedCubemapAuto system.
|
|
void | setListener (ParallaxCorrectedCubemapAutoListener *listener) |
|
void | setUpdatedTrackedDataFromCamera (Camera *trackedCamera) |
| Will update both mTrackedPosition with appropiate settings every time it's called.
|
|
void | setUseDpm2DArray (bool useDpm2DArray) |
| Whether we should use Dual Paraboloid Mapping with 2D Array instead of Cubemap Arrays.
|
|
void | updateAllDirtyProbes (void) |
| By default the probes will be constructed when the user enters the vecinity of non-static probes, and whenever a static probe is dirty.
|
|
virtual void | workspacePosUpdate (CompositorWorkspace *workspace) |
| Called after all nodes has been updated.
|
|
virtual void | workspacePreUpdate (CompositorWorkspace *workspace) |
| Called before all nodes are going to be updated.
|
|
Per-Pixel reflection probes.
Per-Pixel reflection probes are much easier to handle, they're more flexible and powerful. However they require a modern GPU with Cubemap Arrays. Forward Clustered also must be active.
ParallaxCorrectedCubemapAuto supports having more CubemapProbes than the maximum number of probes you pass to ParallaxCorrectedCubemapAuto::setEnabled. However only 'maxNumProbes' probes can be active at the same time. This is all done thanks to _acquireTextureSlot & _releaseTextureSlot.
To activate a probe, call CubemapProbe::initWorkspace. To deactivate it, call CubemapProbe::destroyWorkspace.
void Ogre::ParallaxCorrectedCubemapAuto::setUseDpm2DArray |
( |
bool |
useDpm2DArray | ) |
|
Whether we should use Dual Paraboloid Mapping with 2D Array instead of Cubemap Arrays.
When cubemap arrays are not supported, this setting is always forced on.
When cubemap arrays are supported, it's up to you. The most likely reason you want to use DPM overy cubemap arrays is to see how it looks like on unsupported platforms.
You cannot toggle this setting after enabling the system. You must call ParallaxCorrectedCubemapAuto::setEnabled( false, ... ); to switch this.
- Parameters
-
useDpm2DArray | True to use DPM, cubemap arrays otherwise. Default: False unless GPU does not support cubemap arrays |