#include <PhotonMapFilteringPass.h>
Inheritance diagram for PhotonMapFilteringPass:
Public Member Functions | |
PhotonMapFilteringPass (Root *mRoot, unsigned int width, unsigned int height, TextureType texType=TEX_TYPE_2D, PixelFormat internalFormat=PF_FLOAT16_RGBA, const NameValuePairList *miscParams=0, bool fullScreenQuadRenderer=false, String renderTextureName="FilteredPhotonMapTexture") | |
~PhotonMapFilteringPass () | |
void | generateFilterKernel (t_pmfKernelType kt, int kernelSize) |
Function to generate a filter kernel according to the given shape and size. | |
void | setResolution (float resolution) |
Sets the reciprocal value of the texture resolution. | |
float | getResolution () |
Gets the reciprocal value of the resolution of the unfiltered photon map. | |
void | setAreaCompensation (float ac) |
Setter method to define area compensation. | |
float | getAreaCompensation () |
Getter method to obtain area compensation. | |
void | setNormalThreshold (float nt) |
Setter method to define normal threshold. | |
float | getNormalThreshold () |
Getter method to obtain normal threshold. | |
Protected Member Functions | |
void | onRenderStart (NameValuePairList *namedParams=0) |
Pre rendering method. | |
void | onRenderEnd (NameValuePairList *namedParams=0) |
Post rendering method. |
SuperClass: ManagedOgreRenderTexturePass Class: PhotonMapFilteringPass The instances of this class are to generate a filtered photon map of the owner entity. The shader programs can access to the originally unfiltered photon map and the area map through the texture units of this textures. This association is done by the constructor of the PhotonMapFilteringRenderingRun class. The type of the resulting texture is PF_FLOAT16_RGBA.
|
|
|
Destructor. |
|
Function to generate a filter kernel according to the given shape and size.
|
|
Getter method to obtain area compensation.
|
|
Getter method to obtain normal threshold.
|
|
Gets the reciprocal value of the resolution of the unfiltered photon map.
|
|
Post rendering method. It runs after the render-texture object is updated. Place all cleanup code here.
Reimplemented from ManagedOgreRenderTexturePass. |
|
Pre rendering method. It runs before the render-texture object is updated. Place all shader setup here.
Reimplemented from ManagedOgreRenderTexturePass. |
|
Setter method to define area compensation.
|
|
Setter method to define normal threshold.
|
|
Sets the reciprocal value of the texture resolution.
|