![]() |
OGRE 2.3.3
Object-Oriented Graphics Rendering Engine
|
Contains VctLighting settings about each cascade that cannot be set by setting them directly via VctCascadedVoxelizer::getVctLighting. More...
#include <OgreVctCascadedVoxelizer.h>
Public Member Functions | |
VctCascadeSetting () | |
Vector3 | getVoxelCellSize (void) const |
void | setOctantSubdivision (uint32 subdiv) |
void | setResolution (uint32 res) |
Public Attributes | |
Vector3 | areaHalfSize |
The area around the camera to voxelize. | |
bool | bAutoMultiplier |
bool | bCorrectAreaLightShadows |
See VctImageVoxelizer::VctImageVoxelizer. | |
Vector3 | cameraStepSize |
How much we let the camera move before updating the cascade Value is in range [1; inf) Camera is evaluated in quantized steps. | |
Vector3 | lastCameraPosition |
uint32 | lightMask |
uint32 | octantSubdivision [3] |
See VctImageVoxelizer::dividideOctants These are the values passed to it when we have to perform a full rebuild. | |
float | rayMarchStepScale |
uint32 | resolution [3] |
The resolution to set to voxelizer. | |
float | thinWallCounter |
VctImageVoxelizer * | voxelizer |
Valid ptr after VctCascadedVoxelizer::init. | |
Contains VctLighting settings about each cascade that cannot be set by setting them directly via VctCascadedVoxelizer::getVctLighting.
Ogre::VctCascadeSetting::VctCascadeSetting | ( | ) |
Vector3 Ogre::VctCascadeSetting::areaHalfSize |
The area around the camera to voxelize.
The camera is at the center of this AABB
bool Ogre::VctCascadeSetting::bAutoMultiplier |
bool Ogre::VctCascadeSetting::bCorrectAreaLightShadows |
See VctImageVoxelizer::VctImageVoxelizer.
Recommended setting is true for the first cascade, false for the rest Or just false if you don't plan on using area lights (saves memory and performance)
Vector3 Ogre::VctCascadeSetting::cameraStepSize |
How much we let the camera move before updating the cascade Value is in range [1; inf) Camera is evaluated in quantized steps.
i.e. stepSize = cameraStepSize * 2.0 * areaHalfSize / resolution stepSize = cameraStepSize * getVoxelCellSize()
If cameraStepSize = 1, after the camera moves stepSize, we will move the cascades If cameraStepSize = 2, after the camera moves 2 * stepSize, we will move the cascades
Small step sizes may cause too much brightness jumping as VCT may not be stable Very big step sizes may cause periodic performance spikes or sudden changes in brightness
Vector3 Ogre::VctCascadeSetting::lastCameraPosition |
uint32 Ogre::VctCascadeSetting::lightMask |
uint32 Ogre::VctCascadeSetting::octantSubdivision[3] |
See VctImageVoxelizer::dividideOctants These are the values passed to it when we have to perform a full rebuild.
float Ogre::VctCascadeSetting::rayMarchStepScale |
uint32 Ogre::VctCascadeSetting::resolution[3] |
The resolution to set to voxelizer.
float Ogre::VctCascadeSetting::thinWallCounter |
VctImageVoxelizer* Ogre::VctCascadeSetting::voxelizer |
Valid ptr after VctCascadedVoxelizer::init.
You can call: