#include <PhotonMapFilteringPass.h>
Inheritance diagram for PhotonMapFilteringPass:
Public Member Functions | |
void | generateFilterKernel (t_pmfKernelType kt, int kernelSize) |
Function to generate a filter kernel according to the given shape and size. | |
float | getAreaCompensation () |
Getter method to obtain area compensation. | |
float | getNormalThreshold () |
Getter method to obtain normal threshold. | |
float | getResolution () |
Gets the reciprocal value of the resolution of the unfiltered photon map. | |
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") | |
void | setAreaCompensation (float ac) |
Setter method to define area compensation. | |
void | setNormalThreshold (float nt) |
Setter method to define normal threshold. | |
void | setResolution (float resolution) |
Sets the reciprocal value of the texture resolution. | |
~PhotonMapFilteringPass () | |
Protected Member Functions | |
void | onRenderEnd (NameValuePairList *namedParams=0) |
Post rendering method. | |
void | onRenderStart (NameValuePairList *namedParams=0) |
Pre rendering method. | |
Private Attributes | |
float | areaCompensation |
Parameters to compensate the values of face areas and to define normal threshold. | |
float | f_pmfFilterKernel [25] |
The filter kernel itself. | |
int | i_pmfKernelSize |
The half of the filter kernel in pixels. (The full width of the filter kernel is: g_pmf_iKernelSize + 1 + g_pmf_iKernelSize). | |
t_pmfKernelType | i_pmfKernelType |
An enumeration type to define the shape of the filter kernel. | |
float | normalThreshold |
Parameters to compensate the values of face areas and to define normal threshold. | |
float | resolution |
The reciprocal value of the resolution of the unfiltered photon map. |
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.
|
|
Parameters to compensate the values of face areas and to define normal threshold.
|
|
The filter kernel itself. This array represents one quarter of the filter kernel. The [0, 0] element of this float array is the origin of the kernel. |
|
The half of the filter kernel in pixels. (The full width of the filter kernel is: g_pmf_iKernelSize + 1 + g_pmf_iKernelSize).
|
|
An enumeration type to define the shape of the filter kernel.
|
|
Parameters to compensate the values of face areas and to define normal threshold.
|
|
The reciprocal value of the resolution of the unfiltered photon map.
|