|
Public Member Functions |
| EnvMap () |
void | InvalidateCubeMap () |
void | InvalidateShininess () |
D3DXVECTOR3 & | GetReferencePos () |
void | ChooseMesh (int whichMesh) |
void | KeyboardProc (UINT nChar, bool bKeyDown, bool bAltDown) |
void | DoRendering (D3DXMATRIXA16 &mView, D3DXMATRIXA16 &mProj) |
void | DrawCenterObjects (D3DXMATRIXA16 &mView, D3DXMATRIXA16 &mProj) |
void | DrawEnvObjects (D3DXMATRIXA16 &mView, D3DXMATRIXA16 &mProj) |
void | SetWorldViewProj (D3DXMATRIXA16 &mWorld, D3DXMATRIXA16 &mView, D3DXMATRIXA16 &mProj) |
| Uploads the specified world/view/projection transformation matrices to the GPU.
|
D3DXMATRIXA16 | ScaleAndOffset (float fScale, D3DXVECTOR3 vOffset) |
D3DXMATRIXA16 | ScaleAndOffset (D3DXVECTOR3 vScale, D3DXVECTOR3 vOffset) |
void | RenderCubeMap (IDirect3DCubeTexture9 *pCubeTexture) |
| Renders the environment into the specified cubemap.
|
IDirect3DTexture9 * | GenerateCosTexture () |
| Generates precomputed texture to store values for the reflectivity integral. Uses the eval() function.
|
void | GenerateCosTextureIfNotFound () |
| Calls GenerateCosTexture() if the specified texture is not yet calculated and stored as a texture in the cos subdirectory.
|
float | eval (float cos_theta, float dw) |
| Calculates the reflectivity integral for a given texel.
|
void | OnFrameRender (IDirect3DDevice9 *pd3dDevice, D3DXMATRIXA16 &mView, D3DXMATRIXA16 &mProj) |
void | OnCreateDevice (IDirect3DDevice9 *pd3dDevice, ID3DXEffect *g_pEffect) |
void | OnDestroyDevice () |
void | OnResetDevice () |
void | OnLostDevice () |
void | InitFullScreenQuad () |
void | DrawFullScreenQuad () |
void | ReduceCubeMapSize (IDirect3DCubeTexture9 *pSourceCube, IDirect3DCubeTexture9 *pDestCube) |
void | PreConvolve (IDirect3DCubeTexture9 *pSourceCube, IDirect3DCubeTexture9 *pDestCube) |
| Calculates the irradiance map by convolution.
|
void | SaveCubeMap (IDirect3DCubeTexture9 *pCubeTexture, char *FileNamePrefix, char *FileNameSuffix="") |
IDirect3DCubeTexture9 * | CreateCubeTexture (int size, D3DFORMAT Format) |
Public Attributes |
CModelViewerCamera * | camera |
IDirect3DVertexBuffer9 * | pVertexBuffer |
Private Attributes |
IDirect3DDevice9 * | pd3dDevice |
IDirect3DTexture9 * | pRoomTexture |
IDirect3DCubeTexture9 * | pCubeTexture |
IDirect3DCubeTexture9 * | pCubeTextureFromFile |
IDirect3DCubeTexture9 * | pCubeTextureSmall |
IDirect3DCubeTexture9 * | pCubeTexturePreConvolved |
IDirect3DTexture9 * | pCosValuesTexture |
ID3DXEffect * | g_pEffect |
HRESULT | hr |
bool | bCubeMapIsValid |
bool | bShininessIsValid |
Cube * | cube |
Mesh * | mesh |
Mesh * | meshes [10] |
int | meshCount |
int | whichMesh |
float | roomSize |
D3DXVECTOR3 | reference_pos |